[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: syntax highlighting question

From: Jesper Harder
Subject: Re: syntax highlighting question
Date: Tue, 04 May 2004 05:26:22 +0200
User-agent: Gnus/5.110003 (No Gnus v0.3) Emacs/21.3.50 (gnu/linux)

Aliesha Finkel <address@hidden> writes:

> I'd like to make a new region to syntax highlight similar to C-style
> comments.  I'd like to start it with
> // DBG
> and end it with
> // GBD
> Everything in-between I'd like to set to some color.  I'm a newbie
> to emacs customization, does anyone know off-hand if this can be
> done in emacs

Yes, it can be done.  You need to use the variable
`font-lock-syntactic-keywords' -- see the node "Syntactic Font Lock"
in the Emacs Lisp Manual for details.

Jesper Harder                                <>

reply via email to

[Prev in Thread] Current Thread [Next in Thread]