From: "Zhou Ping" <zhouping_jay@msn.com>
Subject: Re: Graying out the code in "#if 0/#endif" brace?
Date: Wed, 23 Jun 2004 10:00:29 +0800 [thread overview]
Message-ID: <BAY3-F3RLPdiJxO7rPv0001b184@hotmail.com> (raw)
Thank you! I'm not familiar with emacs/LISP programming, do you know any
sample code for reference?
Best regards,
Zhou Ping.
= = = Original message = = =
>>>>>"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
\/
___________________________________________________________
Sent by ePrompter, the premier email notification software.
Free download at http://www.ePrompter.com.
_________________________________________________________________
Protect your PC - get McAfee.com VirusScan Online
http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963
next reply other threads:[~2004-06-23 2:00 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-06-23 2:00 Zhou Ping [this message]
2004-06-23 7:00 ` Graying out the code in "#if 0/#endif" brace? Gian Uberto Lauri
2004-06-30 1:00 ` Zhou Ping
-- strict thread matches above, loose matches on Subject: below --
2004-06-23 0:55 Zhou Ping
2004-06-23 1:19 ` Gian Uberto Lauri
[not found] ` <mailman.1187.1088266061.1953.help-gnu-emacs@gnu.org>
2004-06-29 20:25 ` David Kastrup
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=BAY3-F3RLPdiJxO7rPv0001b184@hotmail.com \
--to=zhouping_jay@msn.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).