Reputation: 15103
Facing a weird code coloring issue when trying to view disabled code.
For blocks of code that are disabled with #ifdef
or #ifndef
statements, I get a grey/white background:
However, when the code is enabled, things are okay:
Where can I find this color property in the properties menu? I can't find anything about disabled code, and it isn't under any of the pre-processor color coding menus.
Upvotes: 8
Views: 3772
Reputation: 15103
As suggested here:
Preferences -> C/C++ -> Editor, “Highlight inactive code” checked, Appearance color options: Inactive code highlight.
Upvotes: 9