Is is possible to define that a block of code between a '#ifdef XYZ' -
'#endif', when 'XYZ' is not defined, is displayed with a different
foreground (or background) font color?
thanks a lot!
--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
I don't think that's be possible, because you can even define a
"DEFINE" by command line to gcc, right?
Just changing background for the region between #ifdef to #endif can
be done, though.
-weber
-weber
I do not think you can do it directly, but if you know emacs lisp you
could hack hide-ifdef-mode to do it.
If you do that then please tell us how you did it.
See hide-ifdef-shadow (the variable to enable it, and the face of the
same name to customize the fore/background).
> Hi,
>
> Is is possible to define that a block of code between a '#ifdef XYZ' -
> '#endif', when 'XYZ' is not defined, is displayed with a different
> foreground (or background) font color?
>
An ability similar to this apparently exists in emacs 23
(CVS). Accoridng to the news file, you can make these constructs
"shaded" rather than just invisible. I'm assuming shading really eans
setting them to different foreground/background colours to the main/rest
of the text.
Tim
--
tcross (at) rapttech dot com dot au