From: Katsumi Yamaoka <yamaoka@jpl.org>
Subject: Re: help with font-lock-multiline
Date: Thu, 30 Sep 2004 21:36:43 +0900 [thread overview]
Message-ID: <b9y3c1053xg.fsf@jpl.org> (raw)
In-Reply-To: jwvpt46xshc.fsf-monnier+gnu.emacs.help@gnu.org
>>>>> In <jwvpt46xshc.fsf-monnier+gnu.emacs.help@gnu.org>
>>>>> Stefan Monnier wrote:
> Your best bet is to mark <% and %> as string (or comment) delimiters in
> font-lock-syntactic-keywords. If you want to highlight them in a different
> face that the string-face or comment-face, then use
> font-lock-syntactic-face-function.
I read the Syntax Tables section of the Elisp info manual and
found how do I highlight text between <% and %>. That the
simplest way to do that in the *scracth* buffer will be the
following:
(setq font-lock-syntactic-keywords '(("\\(<\\)%" 1 "< b")
("%\\(>\\)" 1 "> b")))
I will look for the way to highlight <%foo%> and <%bar%> by
different face. Thank you.
next prev parent reply other threads:[~2004-09-30 12:36 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <mailman.4324.1096326611.1998.help-gnu-emacs@gnu.org>
2004-09-28 2:12 ` help with font-lock-multiline Katsumi Yamaoka
2004-09-28 16:38 ` Stefan Monnier
2004-09-28 17:01 ` Gian Uberto Lauri
[not found] ` <mailman.103.1096391270.2017.help-gnu-emacs@gnu.org>
2004-09-28 19:41 ` Stefan Monnier
2004-09-30 12:36 ` Katsumi Yamaoka [this message]
2004-09-27 23:02 Raul Acevedo
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=b9y3c1053xg.fsf@jpl.org \
--to=yamaoka@jpl.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.
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).