From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Katsumi Yamaoka Newsgroups: gmane.emacs.help Subject: Re: help with font-lock-multiline Date: Thu, 30 Sep 2004 21:36:43 +0900 Organization: Emacsen advocacy group Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1096547952 22550 80.91.229.6 (30 Sep 2004 12:39:12 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 30 Sep 2004 12:39:12 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Sep 30 14:38:45 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 1CD0Cq-00039q-00 for ; Thu, 30 Sep 2004 14:38:45 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CD0JE-0002WE-N5 for geh-help-gnu-emacs@m.gmane.org; Thu, 30 Sep 2004 08:45:20 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!newsmi-us.news.garr.it!newsmi-eu.news.garr.it!NewsITBone-GARR!fu-berlin.de!uni-berlin.de!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 18 Original-X-Trace: news.uni-berlin.de ZiWIemDBXS6lDOWeE7ukxw81X0/TmfqCBpOkg28poCRRZS2VU= X-Face: #kKnN,xUnmKia.'[pp`; Omh}odZK)?7wQSl"4o04=EixTF+V[""w~iNbM9ZL+.b*_CxUmFk B#Fu[*?MZZH@IkN:!"\w%I_zt>[$nm7nQosZ<3eu; B:$Q_:p!',P.c0-_Cy[dz4oIpw0ESA^D*1Lw= L&i*6&( User-Agent: Gnus/5.110003 (No Gnus v0.3) Emacs/21.3.50 (gnu/linux) Cancel-Lock: sha1:hdghmXpMw/SQxtBmStFQZ/S5SbU= Original-Xref: shelby.stanford.edu gnu.emacs.help:125603 Original-To: help-gnu-emacs@gnu.org 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:20959 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:20959 >>>>> In >>>>> 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.