From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jason Rumney Newsgroups: gmane.emacs.help Subject: Re: code between '#ifndef' with a different fore/background color Date: Wed, 23 Jul 2008 17:34:08 -0700 (PDT) Organization: http://groups.google.com Message-ID: References: <48875786.2050703@tqtvd.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1216860040 19865 80.91.229.12 (24 Jul 2008 00:40:40 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 24 Jul 2008 00:40:40 +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 02:41:29 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 1KLotd-0005sx-KX for geh-help-gnu-emacs@m.gmane.org; Thu, 24 Jul 2008 02:41:29 +0200 Original-Received: from localhost ([127.0.0.1]:48912 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KLosk-0006eN-9C for geh-help-gnu-emacs@m.gmane.org; Wed, 23 Jul 2008 20:40:34 -0400 Original-Path: news.stanford.edu!newsfeed.stanford.edu!postnews.google.com!2g2000hsn.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 16 Original-NNTP-Posting-Host: 83.67.23.108 Original-X-Trace: posting.google.com 1216859649 28112 127.0.0.1 (24 Jul 2008 00:34:09 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Thu, 24 Jul 2008 00:34:09 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: 2g2000hsn.googlegroups.com; posting-host=83.67.23.108; posting-account=pYxWjwkAAACsHSUNDoi5N05LVCTP7PVM User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9) Gecko/2008052906 Firefox/3.0,gzip(gfe),gzip(gfe) Original-Xref: news.stanford.edu gnu.emacs.help:160527 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:55874 Archived-At: On Jul 23, 10:46=A0pm, "Lennart Borgman (gmail)" wrote: > Rodrigo Canellas wrote: > > 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? > > I do not think you can do it directly, but if you know emacs lisp you > could hack hide-ifdef-mode to do it. > > If you do that then please tell us how you did it. See hide-ifdef-shadow (the variable to enable it, and the face of the same name to customize the fore/background).