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

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

Re: mmm-mode and html/vbscript/javascript


From: Joe Kelsey
Subject: Re: mmm-mode and html/vbscript/javascript
Date: 12 Aug 2003 14:17:45 -0700

Peter Lee <pete_lee@swbell.net> wrote in message 
news:<uhe4m7n2a.fsf@swbell.net>...
> Would anyone who frequently edits html containing vbscript and jscript
> who has successfully configured mmm-mode to handle this please post
> your config on how you did this?  Or maybe there is a specific mode
> for handling this case and I don't need to use mmm-mode.

See http://mmm-mode.sourceforge.net/ for the last word in mmm-mode or
subscribe to mmm-mode-discuss@lists.sourceforge.net

I have this in my .emacs file:

(require 'mmm-auto)
(setq mmm-global-mode 'maybe)

I place this as the first line of all .html files containing
javascript:

<!-- -*- mmm-classes: html-js; -*- -->

Note that you have to specify <script language="javascript"> to get
mmm to correctly parse your .html files.  See mmm-sample.el for
details on the html-js classes.  If you insist on using non-standard,
proprietary script languages, then the changes to the html-js classes
to support alternate language tags can be accomplished easily.

/Joe


reply via email to

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