unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Jambunathan K <kjambunathan@gmail.com>
To: Gusman <gusman.dp@gmail.com>
Cc: help-gnu-emacs@gnu.org
Subject: Re: #ifdef color
Date: Thu, 23 Jun 2011 23:17:44 +0530	[thread overview]
Message-ID: <81aad84eyn.fsf@gmail.com> (raw)
In-Reply-To: <BANLkTima-wARbxs08_dywiqFesVp_Go9Zw@mail.gmail.com> (Gusman's message of "Wed, 22 Jun 2011 21:49:30 +0900")

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

-- 



      parent reply	other threads:[~2011-06-23 17:47 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-06-22 12:49 #ifdef color Gusman
2011-06-23 11:24 ` Bernardo
2011-06-23 17:14 ` Andreas Röhler
2011-06-23 17:47 ` Jambunathan K [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=81aad84eyn.fsf@gmail.com \
    --to=kjambunathan@gmail.com \
    --cc=gusman.dp@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).