help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: code between '#ifndef' with a different fore/background color


From: Jason Rumney
Subject: Re: code between '#ifndef' with a different fore/background color
Date: Wed, 23 Jul 2008 17:34:08 -0700 (PDT)
User-agent: G2/1.0

On Jul 23, 10:46 pm, "Lennart Borgman (gmail)"
<address@hidden> wrote:
> Rodrigo Canellas wrote:
> > 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?
>
> 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).


reply via email to

[Prev in Thread] Current Thread [Next in Thread]