[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Font lock for #if 0 ... #endif
From: |
Stefan Monnier |
Subject: |
Re: Font lock for #if 0 ... #endif |
Date: |
Sat, 09 Jun 2007 18:24:29 -0400 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.1.50 (gnu/linux) |
>> 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.
Actually, you may be able to get something efficient by placing
a "comment-fence" syntax on those two elements from
c-font-lock-syntactic-keywords. But this can be tricky.
Stefan
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: Font lock for #if 0 ... #endif,
Stefan Monnier <=