Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to make the color theme inside #ifdef more readable in Eclipse?

I love the color themes (thanks!), but one seriously nagging issue is that the code that is #ifdef'd out, is impossible to read (and annoyingly bright). If I highlight those lines, I can read it, but I'd really really rather not see it at all. Seems to be a similar issue as the one for tool-tips, but I am hoping that there is a setting somewhere to turn off the syntax highlighting for inactive code. I have looked and not found it, but that doesn't necessarily mean it doesn't exist. I am an optimist (in this regard anyway).

like image 353
Billy Pilgrim Avatar asked Jun 05 '12 19:06

Billy Pilgrim


People also ask

How do I customize my theme color?

On the Page Layout tab in Excel or the Design tab in Word, click Colors, and then click Customize Colors. Click the button next to the theme color you want to change (for example, Accent 1 or Hyperlink), and then pick a color under Theme Colors.


1 Answers

You can disable #ifdef highlighting entirely by going to:

Window -> Preferences -> C/C++ -> Editor and unchecking the box "Highlight inactive code".

Also, you can change the #ifdef highlighting color by going to that same screen and changing the "Inactive code highlight" color (under "Appearance color options" heading) to a color that works better for you.

like image 179
Thuener Avatar answered Sep 19 '22 21:09

Thuener