From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ryan Bowman Newsgroups: gmane.emacs.help Subject: Highlighting jsp code in mmm-mode Date: Thu, 17 Mar 2005 12:56:34 -0800 (PST) Message-ID: <20050317205635.26473.qmail@web51903.mail.yahoo.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1111094522 31544 80.91.229.2 (17 Mar 2005 21:22:02 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 17 Mar 2005 21:22:02 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Mar 17 22:22:01 2005 Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DC2Q8-0002Ig-Ii for geh-help-gnu-emacs@m.gmane.org; Thu, 17 Mar 2005 22:20:44 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DC2gU-0007fa-P6 for geh-help-gnu-emacs@m.gmane.org; Thu, 17 Mar 2005 16:37:38 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DC2ff-0007CM-6r for help-gnu-emacs@gnu.org; Thu, 17 Mar 2005 16:36:48 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DC2WY-0004NK-MQ for help-gnu-emacs@gnu.org; Thu, 17 Mar 2005 16:27:26 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DC2WW-0004Gj-1V for help-gnu-emacs@gnu.org; Thu, 17 Mar 2005 16:27:20 -0500 Original-Received: from [206.190.39.46] (helo=web51903.mail.yahoo.com) by monty-python.gnu.org with smtp (Exim 4.34) id 1DC22m-0001IT-5Z for help-gnu-emacs@gnu.org; Thu, 17 Mar 2005 15:56:36 -0500 Original-Received: (qmail 26475 invoked by uid 60001); 17 Mar 2005 20:56:35 -0000 Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; b=cVY8snPhbVZrs/gRycUnNsaWoKvR60nMUL72YyknSz4TFbcb/0KEq5DbK0vQGBeyaWIg8g2SOrS6BGgnc+YFjbgTIhYM6+jgxJ2JibqncdRx0D1ST+/NvxXi29oDzcsnVyPscFOhVCN4VH73zwfcxwo6dzuf5gwYByGygBITMro= ; Original-Received: from [208.11.76.5] by web51903.mail.yahoo.com via HTTP; Thu, 17 Mar 2005 12:56:34 PST 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: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org X-MailScanner-To: geh-help-gnu-emacs@m.gmane.org Xref: news.gmane.org gmane.emacs.help:24906 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:24906 I am trying to use mmm-mode to edit jsp files with html-helper-mode and jde-mode. I have setup mmm-mode as shown below (which I got from the wiki page http://emacswiki.org/cgi-bin/wiki/JspMode), however, it doesn't seem to work as I expect. When I open .php files block starting with ") (jsp-code :submode java :match-face (("<%!" . mmm-declaration-submode-face) ("<%=" . mmm-output-submode-face) ("<%" . mmm-code-submode-face)) :front "<%[!=]?" :back "%>" :insert ((?% jsp-code nil @ "<%" @ " " _ " " @ "%>" @) (?! jsp-declaration nil @ "<%!" @ " " _ " " @ "%>" @) (?= jsp-expression nil @ "<%=" @ " " _ " " @ "%>" @)) ) (jsp-directive :submode java :face mmm-special-submode-face :front "<%@" :back "%>" :insert ((?@ jsp-directive nil @ "<%@" @ " " _ " " @ "%>" @)) ) )) ;; What features should be turned on in this html-mode? (add-to-list 'mmm-mode-ext-classes-alist '(html-helper-mode nil fancy-html)) (mmm-add-mode-ext-class nil "\\.jsp\\'" 'fancy-html) (add-to-list 'auto-mode-alist '("\\.jsp\\'" . html-helper-mode)) ---- Ryan Bowman That stupid bird stole my quarter. I hate birds. - Eddie ---- __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com