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

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

Re: How to edit "mixed" (e.g. HTML/JavaScript) files?


From: Hadron
Subject: Re: How to edit "mixed" (e.g. HTML/JavaScript) files?
Date: Thu, 08 Mar 2007 10:48:27 +0100
User-agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.50 (gnu/linux)

"Lennart Borgman (gmail)" <address@hidden> writes:

> kj wrote:
>> It often happens that a single file must contain code corresponding
>> to two different syntaxes.  For example, an HTML file with embedded
>> JavaScript or CSS.
>>
>> Is there a way to *locally* override the mode of a file and replace
>> it with a different mode?
>>
>> If not, is there a good way to deal with such situations (other
>> than avoiding them altogether)?
>>
>> Thanks!
>>
>> kj
>
> It depends on whom you ask ;-)
>
> You may try nxhtml-part-mode in nXhtml (you need Emacs 22 beta):
>
>   http://ourcomments.org/Emacs/nXhtml/doc/nxhtml.html
>
> Or you may try this
>
>   http://www.emacswiki.org/cgi-bin/wiki/MultipleModes
>
>

Has anyone recently got this multiplemodes working? The wiki reads like
a slaughter house!


reply via email to

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