unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* #ifdef color
@ 2011-06-22 12:49 Gusman
  2011-06-23 11:24 ` Bernardo
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Gusman @ 2011-06-22 12:49 UTC (permalink / raw)
  To: help-gnu-emacs

[-- Attachment #1: Type: text/plain, Size: 533 bytes --]

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.


Best Regards,


Gusman Dharma P

[-- Attachment #2: Type: text/html, Size: 711 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: #ifdef color
  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
  2 siblings, 0 replies; 4+ messages in thread
From: Bernardo @ 2011-06-23 11:24 UTC (permalink / raw)
  To: help-gnu-emacs

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

have you tried hide-ifdef-mode?

for more information type
   C-h f hide-ifdef-mode




^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: #ifdef color
  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
  2 siblings, 0 replies; 4+ messages in thread
From: Andreas Röhler @ 2011-06-23 17:14 UTC (permalink / raw)
  To: help-gnu-emacs

Am 22.06.2011 14:49, schrieb Gusman:
> 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.
>
>
> Best Regards,
>
>
> Gusman Dharma P
>

Hi,

you might try also

cc-mode-help@lists.sourceforge.net




^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: #ifdef color
  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
  2 siblings, 0 replies; 4+ messages in thread
From: Jambunathan K @ 2011-06-23 17:47 UTC (permalink / raw)
  To: Gusman; +Cc: help-gnu-emacs

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

-- 



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2011-06-23 17:47 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 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).