In Eclipse, I try to change the background color of my comments in Java code. Is that possible?
Asked
Active
Viewed 2,675 times
2 Answers
0
I don't think it is possible to change the background colour for only comments. There is a 9 year old bug related to this so don't hold your breath waiting for a fix!!

Mark
- 28,783
- 8
- 63
- 92
-
snif... Maybe with a plugin ? – Arutha Jan 27 '10 at 09:40
-
Maybe. You might be better asking on a more Eclipse focussed forum or mailing list. – Mark Jan 27 '10 at 10:12
-1
Of course you can: Window > Preferences Then look for Java > Editor > Syntax Coloring In there you can set the style (bold, italic, color, ...) for single-line, multi-line, and javadoc comments (as well as all other syntactic markup).
Edit: Oh sorry, I didn't read the question well enough, as the above only works for foreground coloring.
Changing background colors in Eclipse in general is already answered here.
-
It's a solution to change the background color for all lines but I need to chnage the background color only for comments. – Arutha Jan 27 '10 at 09:09