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).
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.
Window -> Preferences -> C/C++ -> Editor -> Appearance code options -> Inactive code highlight Choose another color. I prefer grey.
I also recommend to change occurrences background: General -> Editors-> Text Editors -> Annotations -> C/C++ Occurrences
I found this: https://github.com/eclipse-color-theme/eclipse-color-theme/issues/35
"Preferences -> C/C++ -> Editor, “Highlight inactive code” checked, Appearance color options: Inactive code highlight."
This turns off the highlighting for the inactive parts of the code, making them readable again. I haven't found a way yet to change the highlighting color.
Well, I found a partial answer:
Preferences -> C/C++ -> Editor -> syntax highlighting -> preprocessor -> directives changed the foreground color to black.
Preferences -> C/C++ -> Editor -> syntax highlighting -> preprocessor -> others changed foreground color to black
Preferences -> C/C++ -> Editor -> syntax highlighting -> code -> others changed foreground color to black.
At least now I can see it. Anyone know how/where to change the background color for those blocks?
Thanks!
I was looking also for write occurance background. I'll recommend for everybody to change also "Test as" to "Dashed Box" in: Preferences -> General -> Editors -> Text Editors -> Annotations -> C/C+ Write Occurrences
© 2022 - 2024 — McMap. All rights reserved.