unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* VIM can recognize #if 0 #endif as comment pair, how to do that in Emacs?
@ 2007-08-17 19:02 Leo.Hou
  2007-08-17 20:20 ` J. David Boyd
       [not found] ` <mailman.4927.1187382051.32220.help-gnu-emacs@gnu.org>
  0 siblings, 2 replies; 4+ messages in thread
From: Leo.Hou @ 2007-08-17 19:02 UTC (permalink / raw)
  To: help-gnu-emacs

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

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

end of thread, other threads:[~2007-08-20 14:33 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-08-17 19:02 VIM can recognize #if 0 #endif as comment pair, how to do that in Emacs? Leo.Hou
2007-08-17 20:20 ` 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

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