Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Highlighting lines with keywords in Eclipse

I would like to highlight permanently (not as a search result) the logger lines in Eclipse to read quickly the real code.

For example, each line beginning with "logger." would have a light grey background.

Is it possible ?

like image 402
Zofren Avatar asked Nov 04 '22 19:11

Zofren


1 Answers

I think the closest you could get to such a feature would be activating 'Mark Occurrences' by pressing Shift + Alt + O or activating it in the settings. Then, you only have to click on logger. and Eclipse marks all occurrences of that line in the file.

I can't think of any way to permanently mark any given expression, though, as this solution will only work with types, methods, constants etc.

like image 143
vehk Avatar answered Nov 09 '22 10:11

vehk