From: "Leo.Hou" <leo.hou@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: VIM can recognize #if 0 #endif as comment pair, how to do that in Emacs?
Date: Fri, 17 Aug 2007 19:02:12 -0000 [thread overview]
Message-ID: <1187377332.321751.12480@50g2000hsm.googlegroups.com> (raw)
Hi Experts,
I saw a friend using VIM and it recognizes #if 0 -- #endif as comment
pair and use the comment color for the code in between!
This is so cool because I had a big headache using emacs+etags jumping
into others' code, spent 5 minutes and then realized that emacs
brought me to some codes between a #if0 -- #endif pair. :'-(
Can anyone make Emacs to recognize this common convention and
highlight all the pieces between them as comment?
Thanks!
Leo
next reply other threads:[~2007-08-17 19:02 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-08-17 19:02 Leo.Hou [this message]
2007-08-17 20:20 ` VIM can recognize #if 0 #endif as comment pair, how to do that in Emacs? J. David Boyd
[not found] ` <mailman.4927.1187382051.32220.help-gnu-emacs@gnu.org>
2007-08-17 23:20 ` Leo.Hou
2007-08-20 14:33 ` J. David Boyd
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1187377332.321751.12480@50g2000hsm.googlegroups.com \
--to=leo.hou@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.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.