From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Leo.Hou" Newsgroups: gmane.emacs.help 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 Organization: http://groups.google.com Message-ID: <1187377332.321751.12480@50g2000hsm.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: sea.gmane.org 1187379676 32187 80.91.229.12 (17 Aug 2007 19:41:16 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 17 Aug 2007 19:41:16 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Aug 17 21:41:12 2007 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1IM7h1-0000k2-LH for geh-help-gnu-emacs@m.gmane.org; Fri, 17 Aug 2007 21:41:11 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IM7h1-00040e-5C for geh-help-gnu-emacs@m.gmane.org; Fri, 17 Aug 2007 15:41:11 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!50g2000hsm.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 19 Original-NNTP-Posting-Host: 206.132.194.9 Original-X-Trace: posting.google.com 1187377332 5584 127.0.0.1 (17 Aug 2007 19:02:12 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Fri, 17 Aug 2007 19:02:12 +0000 (UTC) User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; InfoPath.1; .NET CLR 2.0.50727),gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: 50g2000hsm.googlegroups.com; posting-host=206.132.194.9; posting-account=ps2QrAMAAAA6_jCuRt2JEIpn5Otqf_w0 Original-Xref: shelby.stanford.edu gnu.emacs.help:151083 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:46658 Archived-At: 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