0

In Eclipse, I try to change the background color of my comments in Java code. Is that possible?

Arutha
  • 26,088
  • 26
  • 67
  • 80

2 Answers2

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
-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.

Community
  • 1
  • 1
Frank
  • 10,461
  • 2
  • 31
  • 46
  • 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