* mmm-mode for Visual Basic ASP files
@ 2003-03-05 17:34 Mark Mynsted
0 siblings, 0 replies; only message in thread
From: Mark Mynsted @ 2003-03-05 17:34 UTC (permalink / raw)
Does anybody out there use mmm-mode (Multi-mode) for Visual Basic, ASP
files?
I attempted this by putting the following in my initialization file
after installing mmm-mode, visual-basic-mode and sgml-mode.:
;; multi-mode (Must be installed)
(require 'mmm-auto)
(mmm-add-group 'asp
`((asp-code
:submode visual-basic-mode
:match-face (("<%!" . mmm-declaration-submode-face)
("<%=" . mmm-output-submode-face)
("<%" . mmm-code-submode-face))
:front "<%[!=]?"
:back "%>"
:insert ((?% asp-code nil @ "<%" @ " " _ " " @ "%>" @)
(?! asp-declaration nil @ "<%!" @ " " _ " " @ "%>" @)
(?= asp-expression nil @ "<%=" @ " " _ " " @ "%>" @))
)
(asp-directive
:submode text-mode
;:face mmm-special-submode-face
:front "<%@"
:back "%>"
:insert ((?@ asp-directive nil @ "<%@" @ " " _ " " @ "%>" @))
)))
(add-to-list 'mmm-mode-ext-classes-alist '(nil "\\.asp\\'" asp-code))
It works OK for the visual basic parts but the remainder of the ASP
files are HTML with JavaScript.
Problem:
The HTML parts are not font locked like they are when the file is only
HTML.
Anybody have a better mmm-mode solution for visual basic ASP files?
--
-MM
I rarely read email from this address /"\
because of spam. \ / ASCII Ribbon Campaign
I MAY see it if you put #NOTSPAM# X Against HTML Mail
in the subject line. / \
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2003-03-05 17:34 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-03-05 17:34 mmm-mode for Visual Basic ASP files Mark Mynsted
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).