From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: weber Newsgroups: gmane.emacs.help Subject: Re: code between '#ifndef' with a different fore/background color Date: Wed, 23 Jul 2008 14:13:14 -0700 (PDT) Organization: http://groups.google.com Message-ID: <08d12670-5687-4859-9d78-4fb0afb786fe@2g2000hsn.googlegroups.com> References: 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 1216849252 21909 80.91.229.12 (23 Jul 2008 21:40:52 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 23 Jul 2008 21:40:52 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Jul 23 23:41:41 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 1KLm5S-0003bk-H5 for geh-help-gnu-emacs@m.gmane.org; Wed, 23 Jul 2008 23:41:30 +0200 Original-Received: from localhost ([127.0.0.1]:55070 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KLm4Y-000545-Vy for geh-help-gnu-emacs@m.gmane.org; Wed, 23 Jul 2008 17:40:35 -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: 21 Original-NNTP-Posting-Host: 189.27.132.111 Original-X-Trace: posting.google.com 1216847595 25670 127.0.0.1 (23 Jul 2008 21:13:15 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Wed, 23 Jul 2008 21:13:15 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: 2g2000hsn.googlegroups.com; posting-host=189.27.132.111; posting-account=7GrjgQoAAAD6slWURausdJnhFDkmQYC8 User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.1) Gecko/2008070208 Firefox/3.0.1,gzip(gfe),gzip(gfe) X-HTTP-Via: 1.1 stargate.datacom:3128 (squid/2.6.STABLE5) Original-Xref: news.stanford.edu gnu.emacs.help:160521 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:55868 Archived-At: On Jul 23, 1:08=A0pm, 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? > > thanks a lot! > > -- > This message has been scanned for viruses and > dangerous content by MailScanner, and is > believed to be clean. I don't think that's be possible, because you can even define a "DEFINE" by command line to gcc, right? Just changing background for the region between #ifdef to #endif can be done, though. -weber -weber