9

Really annoyed by eclipse masking over #if defined region with grey color. I want to either turn off this feature, or make it the same as for normal region. Have been looking for a solution for some time but couldn't find anything.

HELP!

Thanks.

Code_So1dier
  • 921
  • 1
  • 6
  • 15

2 Answers2

13

You can adjust language syntax coloring via

Window > Preference > [Your Language] > Editor > Syntax Coloring

for the language specified background color, you can check

Window > Preference > Appearance > Colors and Fonts

Inside the panel, you should able to find out preference color/font for your language.

UPDATE :

There is an "Appearance Color Option" in

Window > Preference > [Your Language] > Editor

For C/C++ editor, it has an option call "Inactive code highlight".

Rangi Lin
  • 9,303
  • 6
  • 45
  • 71
  • I went through those settings number of times, but couldn't find background change option for #define / #ifdef / #ifndef. I am using c++ language btw. – Code_So1dier Mar 06 '12 at 05:49
  • @Code_So1dier > I think I found what you need, check my updated answer please. – Rangi Lin Mar 06 '12 at 06:06
2

On Mac:

  1. Eclipse
  2. Preferences
  3. C/C++
  4. Editor
  5. Inactive code highlight (2nd option)
Nick Bolton
  • 38,276
  • 70
  • 174
  • 242