问题
Is there any option to highlight same words in text files in Eclipse. I know that eclipse is highlighting java code.
But can we also enable somehow highlighting of same words in text files?
The same function is in Notepad++. If we select some word it will highlight all the same words in the whole file.

回答1:
If you enable "Mark Occurrences" (Alt + Shift + O), then all words that are the same as the one you have marked will be highlighted.

回答2:
Well if you're searching in the currently open file only (via CTRL-F) then no, you can't have everything highlighted.
However if you use the advanced search (CTRL-H, then go to "File search" tab) there you can input the search pattern, as well as the file-name pattern for the file(s) where it should search, and when the search is done, the search terms are highlighted in each file where they were found:

来源:https://stackoverflow.com/questions/12301080/highlight-same-words-in-text-files-in-eclipse