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: martin rudalics
Subject: Re: Font lock for #if 0 ... #endif
Date: Wed, 16 May 2007 08:13:20 +0200
User-agent: Mozilla Thunderbird 1.0 (Windows/20041206)

> 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."





reply via email to

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