[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: help with font-lock-multiline
From: |
Katsumi Yamaoka |
Subject: |
Re: help with font-lock-multiline |
Date: |
Thu, 30 Sep 2004 21:36:43 +0900 |
User-agent: |
Gnus/5.110003 (No Gnus v0.3) Emacs/21.3.50 (gnu/linux) |
>>>>> 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.