From: GianUberto.Lauri@eng.it (Gian Uberto Lauri)
Cc: help-gnu-emacs@gnu.org
Subject: Graying out the code in "#if 0/#endif" brace?
Date: Wed, 23 Jun 2004 03:19:28 +0200 [thread overview]
Message-ID: <16600.55968.813668.871179@mail.eng.it> (raw)
In-Reply-To: <BAY3-DAV9FuXCpU6q5i00002f18@hotmail.com>
>>>>> "ZP" == Zhou Ping <zhouping_jay@msn.com> writes:
ZP> Hello all,
ZP> I noticed that vim can use different color on the code enclosed in an "#if
ZP> 0/#endif" directive brace. This is very useful for code editing or reading.
ZP> I wonder if emacs has this kind of feature? If so, how can I add/enable it?
ZP> Thanks.
I don't think emacs has this but it's possible to add it, even if I have
some trouble doing something like in another mode I mantain.
The trick is to define #if[ ^I]+0 as a syntactic keyword and write a piece
of code that skips everithyng up to the #endif...
--
/\ ___
/___/\__|_|\_|__|___Gian Uberto Lauri_____________________
//--\ | | \| | Integralista GNUslamico e fancazzista
\/
next prev parent reply other threads:[~2004-06-23 1:19 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-06-23 0:55 Graying out the code in "#if 0/#endif" brace? Zhou Ping
2004-06-23 1:19 ` Gian Uberto Lauri [this message]
[not found] ` <mailman.1187.1088266061.1953.help-gnu-emacs@gnu.org>
2004-06-29 20:25 ` David Kastrup
-- strict thread matches above, loose matches on Subject: below --
2004-06-23 2:00 Zhou Ping
2004-06-23 7:00 ` Gian Uberto Lauri
2004-06-30 1:00 ` Zhou Ping
2004-06-23 0:54 Zhou, Ping A
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=16600.55968.813668.871179@mail.eng.it \
--to=gianuberto.lauri@eng.it \
--cc=help-gnu-emacs@gnu.org \
--cc=saint@eng.it \
/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).