Skip to content

Commit 335174e

Browse files
committed
add mhtml-mode.el
* etc/NEWS: Update. * lisp/textmodes/mhtml-mode.el: New file. * test/manual/indent/html-multi.html: New file. * test/lisp/textmodes/mhtml-mode-tests.el: New file. * doc/emacs/text.texi (HTML Mode): Mention mhtml-mode.
1 parent d392b6e commit 335174e

File tree

5 files changed

+493
-2
lines changed

5 files changed

+493
-2
lines changed

doc/emacs/text.texi

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1899,8 +1899,14 @@ between Latin-1 encoded files and @TeX{}-encoded equivalents.
18991899
@findex html-mode
19001900

19011901
The major modes for SGML and HTML provide indentation support and
1902-
commands for operating on tags. HTML mode is a slightly customized
1903-
variant of SGML mode.
1902+
commands for operating on tags.
1903+
1904+
HTML consists of two modes---one, a basic mode called
1905+
@code{html-mode} is a slightly customized variant of SGML mode. The
1906+
other, which is used by default for HTML files, is called
1907+
@code{mhtml-mode}, and attempts to properly handle Javascript enclosed
1908+
in a @code{<script>} element and CSS embedded in a @code{<style>}
1909+
element.
19041910

19051911
@table @kbd
19061912
@item C-c C-n

etc/NEWS

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -753,6 +753,13 @@ processes on exit.
753753

754754
** New library 'xdg' with utilities for some XDG standards and specs.
755755

756+
** HTML
757+
758+
+++
759+
*** A new submode of `html-mode', `mthml-mode', is now the default
760+
mode for *.html files. This mode handles indentation,
761+
fontification, and commenting for embedded JavaScript and CSS.
762+
756763

757764
* Incompatible Lisp Changes in Emacs 26.1
758765

0 commit comments

Comments
 (0)