Code between #if SYMBOL
and #endif
is greyed out in cc-mode
if the SYMBOL
has not been defined within the current file.
The project that I´m currently working on has a common code base for Mac and Windows so there´s a lot of #if WINDOWS
and #if MAC
in there. This results in lots of code in the editor that is grey and without syntax highlighting since these symbols are defined in some other compilation unit.
How can I enable syntax colouring in the current editor without editing the file? I can always add a #define SYMBOL 1
above the #if SYMBOL
but this does not feel right?
hide-ifdef-mode
by any chance?