unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Ken Goldman <kgold@watson.ibm.com>
Subject: Re: How to comment #if 0 / #endif to gray in C codes.
Date: Wed, 31 May 2006 09:45:08 -0400	[thread overview]
Message-ID: <447eef86$1@news.greennet.net> (raw)
In-Reply-To: <mailman.2463.1149075463.9609.help-gnu-emacs@gnu.org>

I can't help you make them gray, but do you know about hideif-mode?

With that mode, the lines between the #if can be hidden, like this:

#if 0...
#endif

You can toggle it on and off, and use it for macros as well.

Yiming Lu wrote:
> Hi,
> 
> I want comment some lines with #if0 and #endif /
> #elif,
> and want the color of text to be gray, but in my emacs
> it don't change color.
> 
> If I comment with /* and */, it does.

       reply	other threads:[~2006-05-31 13:45 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.2463.1149075463.9609.help-gnu-emacs@gnu.org>
2006-05-31 13:45 ` Ken Goldman [this message]
2006-05-31 10:21 How to comment #if 0 / #endif to gray in C codes Yiming Lu

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='447eef86$1@news.greennet.net' \
    --to=kgold@watson.ibm.com \
    /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).