From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Martin" Newsgroups: gmane.emacs.help Subject: hightlight if/ifdef blocks Date: 31 Oct 2006 00:24:22 -0800 Organization: http://groups.google.com Message-ID: <1162283062.420423.84720@b28g2000cwb.googlegroups.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: sea.gmane.org 1162284034 32180 80.91.229.2 (31 Oct 2006 08:40:34 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 31 Oct 2006 08:40:34 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Oct 31 09:40:33 2006 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1GepAW-00072Z-2q for geh-help-gnu-emacs@m.gmane.org; Tue, 31 Oct 2006 09:40:24 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GepAV-0003kG-J0 for geh-help-gnu-emacs@m.gmane.org; Tue, 31 Oct 2006 03:40:23 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!b28g2000cwb.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 27 Original-NNTP-Posting-Host: 134.130.222.73 Original-X-Trace: posting.google.com 1162283067 2822 127.0.0.1 (31 Oct 2006 08:24:27 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Tue, 31 Oct 2006 08:24:27 +0000 (UTC) User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.4) Gecko/20060406 Firefox/1.5.0.4 (Debian-1.5.dfsg+1.5.0.4-1),gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: b28g2000cwb.googlegroups.com; posting-host=134.130.222.73; posting-account=CcyRbAwAAAA3Q1SnjcEWvdiZewaBAN6Y Original-Xref: shelby.stanford.edu gnu.emacs.help:142810 Original-To: help-gnu-emacs@gnu.org 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:38429 Archived-At: Hi, after reading some rules about not nesting c comments and using #if 0 instead I tried it out in emacs. But as it is at the moment, the blocks are not shown as if I would have commented them out. Is there an easy way of doing this? The blocks should look the same way as the comments usually look when I add a //. so // not_used_at_the_moment(); should have the same color as #if 0 not_used_at_the_moment(); #endif I tried different things where people suggested that I make these blocks invisible. But since that's not what I want ... Any suggestions? Thanks in advance Martin