From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: GianUberto.Lauri@eng.it (Gian Uberto Lauri) Newsgroups: gmane.emacs.help Subject: Re: help with font-lock-multiline Date: Tue, 28 Sep 2004 19:01:10 +0200 Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <16729.39126.670479.406616@mail.eng.it> References: Reply-To: saint@eng.it NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1096390912 4268 80.91.229.6 (28 Sep 2004 17:01:52 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 28 Sep 2004 17:01:52 +0000 (UTC) Cc: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Sep 28 19:01:34 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1CCLM5-0007Nv-00 for ; Tue, 28 Sep 2004 19:01:34 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CCLSO-0000tw-Bg for geh-help-gnu-emacs@m.gmane.org; Tue, 28 Sep 2004 13:08:04 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CCLS9-0000r6-LR for help-gnu-emacs@gnu.org; Tue, 28 Sep 2004 13:07:50 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CCLS8-0000qc-K5 for help-gnu-emacs@gnu.org; Tue, 28 Sep 2004 13:07:48 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CCLS8-0000qJ-EM for help-gnu-emacs@gnu.org; Tue, 28 Sep 2004 13:07:48 -0400 Original-Received: from [62.101.90.2] (helo=mail.eng.it) by monty-python.gnu.org with esmtp (Exim 4.34) id 1CCLLo-0007Pg-A5 for help-gnu-emacs@gnu.org; Tue, 28 Sep 2004 13:01:16 -0400 Original-Received: from castore (localhost [127.0.0.1]) by deliver.antivirus (Postfix) with ESMTP id 2707517802; Tue, 28 Sep 2004 19:01:12 +0200 (CEST) Original-Received: from mail.eng.it (localhost [127.0.0.1]) by localhost ([127.0.0.1]); Tue, 28 Sep 2004 17:01:11 +0000 Original-Received: from paperoga (unknown [192.168.22.125]) by mail.eng.it (Postfix) with ESMTP id DF77817802; Tue, 28 Sep 2004 19:01:10 +0200 (CEST) Original-To: Stefan Monnier Original-Newsgroups: gnu.emacs.help In-Reply-To: X-Mailer: VM 7.07 under Emacs 21.3.1 X-attribution: CC X-Zippy: I don't know WHY I said that.. I think it came from the FILLINGS in my rear molars.. X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:20930 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:20930 >>>>> "SM" == Stefan Monnier 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: 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 \/