[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: #ifdef color
From: |
Jambunathan K |
Subject: |
Re: #ifdef color |
Date: |
Thu, 23 Jun 2011 23:17:44 +0530 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (windows-nt) |
Gusman <gusman.dp@gmail.com> writes:
> Hi All
>
> I'am newbie in emacs. Previously I use other source editor which is
> commercial.
> That editor has very useful feature for me. The feature is dimmed
> color for undefined C MACRO.
> and we can set the value of C MACRO., if the value is match code
> block inside the #ifdef
> will be colored, but if the #ifdef value is wrong, the code block
> will be colored grey.
>
> I really need your help to realize this in emacs, because every day I
> am workingÂ
> on a bunch of #ifdef in big code.
>
> Thank you in advance.
>
You are looking for hide-if-def mode.
C-h f hide-if-def mode is the best way to start.
IIRC, I had used this mode earlier but abandoned it because I found it
cumbersome.
http://www.emacswiki.org/emacs/HideShow can provide other starting
points.
>
> Best Regards,
>
>
> Gusman Dharma P
>
>
--