help-emacs-windows
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[h-e-w] Re: Emacs and JSP


From: Galen Boyer
Subject: [h-e-w] Re: Emacs and JSP
Date: 06 Dec 2002 09:17:35 -0500
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2

On Fri, 6 Dec 2002, address@hidden wrote:
> Hi Eli and all,
> 
> It's not mmm-mode but the older multi-mode (available in the
> emacs archives).  I tried to use mmm-mode but also stumbled
> over the customizations needed.  When Galen mentioned
> multi-mode earlier this week, I thought he referred to mm-mode,
> but then found out multi-mode has been in existence for years
> and indeed does the job nicely (if you customize
> global-semantic-show-unmatched-syntax-mode to nil so senator
> will not annoy you with red underlines in the html code).
> 
> Mind you, if you *do* get mmm-mode working for jsp files I'm
> more than interested to know the sordid details.

Does this help?

(mmm-add-group 'jsp
               `((jsp-code
                  :submode jde-mode
                  :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 text-mode
                  :face mmm-special-submode-face
                  :front "<%@"
                  :back "%>"
                  :insert ((?@ jsp-directive nil @ "<%@" @ " " _ " " @ "%>" @))
                  )))

(setq mmm-mode-ext-classes-alist nil)
(add-to-list 'mmm-mode-ext-classes-alist '(nil "\\.asp\\'" asp-code))
(add-to-list 'mmm-mode-ext-classes-alist '(nil "\\.jsp\\'" jsp-code))
(add-to-list 'mmm-mode-ext-classes-alist '(nil "\\.js\\'" html-js))

-- 
Galen Boyer






reply via email to

[Prev in Thread] Current Thread [Next in Thread]