From: GianUberto.Lauri@eng.it (Gian Uberto Lauri)
Cc: help-gnu-emacs@gnu.org
Subject: Re: help with font-lock-multiline
Date: Tue, 28 Sep 2004 19:01:10 +0200 [thread overview]
Message-ID: <16729.39126.670479.406616@mail.eng.it> (raw)
In-Reply-To: <jwvpt46xshc.fsf-monnier+gnu.emacs.help@gnu.org>
>>>>> "SM" == Stefan Monnier <monnier@iro.umontreal.ca> writes:
>> I'm doing JSP development, and I want something very simple. I want to
>> fontify the text between <% and %> tags, even if spread across multiple
>> lines.
SM> font-lock-multiline is probably not the right tool here (it works OK for
SM> things that are "generally single line, but something spread over a couple
SM> more lines", but for really long sections forget it).
SM> Your best bet is to mark <% and %> as string (or comment) delimiters in
SM> font-lock-syntactic-keywords. If you want to highlight them in a different
SM> face that the string-face or comment-face, then use
SM> font-lock-syntactic-face-function.
KA-BANG!!!!!!!!!!!!!!
I'm trying it in the beta version of the next version wannabe of
html-helper-mode - masochist can find it at the following url:
<http://savannah.nongnu.org/download/baol-hth/beta-html-helper-mode.el.gz>
but it falls one tag short (it seems it fails to decorate the last tag
- an html tag could span multiple lines)
Where can I learn how to write it properly ?
The tex-mode example was a too little help for my limited skills (and
intellect).
TIA!!!!
--
/\ ___
/___/\__|_|\_|__|___Gian Uberto Lauri_____________________
//--\ | | \| | Integralista GNUslamico e fancazzista
\/
next prev parent reply other threads:[~2004-09-28 17:01 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 [this message]
[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
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=16729.39126.670479.406616@mail.eng.it \
--to=gianuberto.lauri@eng.it \
--cc=help-gnu-emacs@gnu.org \
--cc=saint@eng.it \
/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).