all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Jason Rumney <jasonrumney@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: code between '#ifndef' with a different fore/background color
Date: Wed, 23 Jul 2008 17:34:08 -0700 (PDT)	[thread overview]
Message-ID: <c6d47e2a-77a6-4707-b98a-efe41b902d20@2g2000hsn.googlegroups.com> (raw)
In-Reply-To: mailman.15288.1216849621.18990.help-gnu-emacs@gnu.org

On Jul 23, 10:46 pm, "Lennart Borgman (gmail)"
<lennart.borg...@gmail.com> 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).


  parent reply	other threads:[~2008-07-24  0:34 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-07-23 16:08 code between '#ifndef' with a different fore/background color Rodrigo Canellas
2008-07-23 21:46 ` Lennart Borgman (gmail)
     [not found] ` <mailman.15288.1216849621.18990.help-gnu-emacs@gnu.org>
2008-07-24  0:34   ` Jason Rumney [this message]
     [not found] <mailman.15280.1216829450.18990.help-gnu-emacs@gnu.org>
2008-07-23 21:13 ` weber
2008-07-24 12:38 ` Tim X

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=c6d47e2a-77a6-4707-b98a-efe41b902d20@2g2000hsn.googlegroups.com \
    --to=jasonrumney@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.