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

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

Re: Font lock for #if 0 ... #endif


From: gamename
Subject: Re: Font lock for #if 0 ... #endif
Date: 18 May 2007 08:11:08 -0700
User-agent: G2/1.0

On May 15, 11:13 pm, martin rudalics <rudal...@gmx.at> wrote:
>  > Sometimes in my C routines,  I do
>  >
>  > #if 0
>  > <code>
>  > #endif
>  >
>  > to temporarily skip compilation of code (mostly for debugging
>  > purposes).
>  >
>  > How can I change fontlock to recolor the region to something obvious?
>
> I won't recommend doing that in font-lock - the region could be too
> large to be handled efficiently.  Try hide ifdef (hideif.el): If you
> don't like the ellipses you could use overlays to "recolor the region."

Ok.  I guess it really isn't possible to do what I wanted to anyway.

-T



reply via email to

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