Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Highlight same words in text files in Eclipse

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.

notepad++ highlight

like image 814
Ivan Sas Avatar asked Sep 06 '12 13:09

Ivan Sas


2 Answers

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

enter image description here

like image 67
Fredrik Avatar answered Oct 04 '22 03:10

Fredrik


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:

enter image description here

like image 40
Shivan Dragon Avatar answered Oct 04 '22 03:10

Shivan Dragon