From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tim X Newsgroups: gmane.emacs.help Subject: Re: code between '#ifndef' with a different fore/background color Date: Thu, 24 Jul 2008 22:38:58 +1000 Organization: Rapt Technologies Message-ID: <87fxpzzcbh.fsf@lion.rapttech.com.au> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1216903510 4278 80.91.229.12 (24 Jul 2008 12:45:10 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 24 Jul 2008 12:45:10 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Jul 24 14:45:58 2008 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 1KM0CT-0002Mt-Nw for geh-help-gnu-emacs@m.gmane.org; Thu, 24 Jul 2008 14:45:41 +0200 Original-Received: from localhost ([127.0.0.1]:39299 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KM0Ba-0002AD-9F for geh-help-gnu-emacs@m.gmane.org; Thu, 24 Jul 2008 08:44:46 -0400 Original-Path: news.stanford.edu!headwall.stanford.edu!newshub.sdsu.edu!news.astraweb.com!border1.newsrouter.astraweb.com!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) Cancel-Lock: sha1:vFxT+PqHd9TvWou7RqdoYgGeVms= Original-Lines: 20 Original-NNTP-Posting-Host: 65e9c5e9.news.astraweb.com Original-X-Trace: DXC=Vdc`@2TZW 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:55901 Archived-At: Rodrigo Canellas writes: > Hi, > > Is is possible to define that a block of code between a '#ifdef XYZ' - > '#endif', when 'XYZ' is not defined, is displayed with a different > foreground (or background) font color? > An ability similar to this apparently exists in emacs 23 (CVS). Accoridng to the news file, you can make these constructs "shaded" rather than just invisible. I'm assuming shading really eans setting them to different foreground/background colours to the main/rest of the text. Tim -- tcross (at) rapttech dot com dot au