Accepted answer

I've found where to change it:

Preferences -> General -> Editors -> Text Editors -> Annotations and there you have to change both "Occurrences" and "Write occurrences".


If you're using eclipse with PHP package and want to change highlighted colour then there is slight difference to above answer.

  1. Right click on highlighted word
  2. Select 'Preferences'
  3. Go to General > Editors > Text Editors > Annotations. Now look for "PHP elements 'read' occurrences" and "PHP elements 'write' occurrences". You can select your desired colour there.

Change Highlighted text colour in Eclips with PHP


This has made me mad for about half an hour.

If the issue appears in JavaScript files, the option is under Preferences -> General -> Editors -> Text Editors -> Annotations and in the Annotation types choose JavaScript Occurences. Mine was set to black, nasty little thing took me too long to fix.

enter image description here


Preferences -> General -> Editors -> Text Editors

Current Line Highlight

I think you want the above


Preferences -> Java -> Editor -> Syntax Coloring

Element -> Java -> Method or Variable

Check Enable and select color

Related Query

More Query from same tag