From: Jesper Harder <harder@myrealbox.com>
Subject: Re: syntax highlighting question
Date: Tue, 04 May 2004 05:26:22 +0200 [thread overview]
Message-ID: <m3ekq0j2jl.fsf@defun.localdomain> (raw)
In-Reply-To: mailman.2848.1083437514.1061.help-gnu-emacs@gnu.org
Aliesha Finkel <agfinkel@yahoo.com> 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 <http://purl.org/harder/>
next parent reply other threads:[~2004-05-04 3:26 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <mailman.2848.1083437514.1061.help-gnu-emacs@gnu.org>
2004-05-04 3:26 ` Jesper Harder [this message]
2004-05-01 18:47 syntax highlighting question Aliesha Finkel
-- strict thread matches above, loose matches on Subject: below --
2004-02-16 15:30 Syntax " William Payne
2004-02-16 16:12 ` Peter Lee
2004-02-16 17:35 ` William Payne
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m3ekq0j2jl.fsf@defun.localdomain \
--to=harder@myrealbox.com \
/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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).