|
From: | Lennart Borgman (gmail) |
Subject: | Re: How to edit "mixed" (e.g. HTML/JavaScript) files? |
Date: | Tue, 06 Mar 2007 22:07:59 +0100 |
User-agent: | Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.10) Gecko/20070221 Thunderbird/1.5.0.10 Mnenhy/0.7.5.666 |
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
[Prev in Thread] | Current Thread | [Next in Thread] |