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: Lennart Borgman (gmail)
Subject: Re: code between '#ifndef' with a different fore/background color
Date: Wed, 23 Jul 2008 23:46:46 +0200
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.9) Gecko/20071031 Thunderbird/2.0.0.9 Mnenhy/0.7.5.666

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.




reply via email to

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