63 |
* Text Mode:: The major modes for editing text files. |
* Text Mode:: The major modes for editing text files. |
64 |
* Outline Mode:: Editing outlines. |
* Outline Mode:: Editing outlines. |
65 |
* TeX Mode:: Editing input to the formatter TeX. |
* TeX Mode:: Editing input to the formatter TeX. |
66 |
* HTML Mode:: Editing HTML files. |
* HTML Mode:: Editing HTML, SGML, and XML files. |
67 |
* Nroff Mode:: Editing input to the formatter nroff. |
* Nroff Mode:: Editing input to the formatter nroff. |
68 |
* Formatted Text:: Editing formatted text directly in WYSIWYG fashion. |
* Formatted Text:: Editing formatted text directly in WYSIWYG fashion. |
69 |
@end menu |
@end menu |
1653 |
Ref@TeX{}. @xref{Top, , RefTeX, reftex}. |
Ref@TeX{}. @xref{Top, , RefTeX, reftex}. |
1654 |
|
|
1655 |
@node HTML Mode |
@node HTML Mode |
1656 |
@section SGML and HTML Modes |
@section SGML, XML, and HTML Modes |
1657 |
|
|
1658 |
The major modes for SGML and HTML include indentation support and |
The major modes for SGML and HTML include indentation support and |
1659 |
commands to operate on tags. This section describes the special |
commands to operate on tags. This section describes the special |
1719 |
@item C-c / |
@item C-c / |
1720 |
@kindex C-c / @r{(SGML mode)} |
@kindex C-c / @r{(SGML mode)} |
1721 |
@findex sgml-close-tag |
@findex sgml-close-tag |
1722 |
Insert a close tag for the innermost unterminated tag (@code{sgml-close-tag}). |
Insert a close tag for the innermost unterminated tag |
1723 |
|
(@code{sgml-close-tag}). If called from within a tag or a comment, |
1724 |
|
close this element instead of inserting a close tag. |
1725 |
|
|
1726 |
@item C-c 8 |
@item C-c 8 |
1727 |
@kindex C-c 8 @r{(SGML mode)} |
@kindex C-c 8 @r{(SGML mode)} |
1737 |
buffer as SGML (@code{sgml-validate}). |
buffer as SGML (@code{sgml-validate}). |
1738 |
@end table |
@end table |
1739 |
|
|
1740 |
|
@item C-x TAB |
1741 |
|
@kindex C-c TAB @r{(SGML mode)} |
1742 |
|
@findex sgml-tags-invisible |
1743 |
|
Toggle the visibility of existing tags in the buffer. This can be |
1744 |
|
used as a cheap preview. |
1745 |
|
|
1746 |
@vindex sgml-xml-mode |
@vindex sgml-xml-mode |
1747 |
SGML mode and HTML mode support XML also. In XML, every opening tag |
SGML mode and HTML mode support XML also. In XML, every opening tag |
1748 |
must have an explicit closing tag. When @code{sgml-xml-mode} is |
must have an explicit closing tag. When @code{sgml-xml-mode} is |
1749 |
non-@code{nil}, SGML mode (and HTML mode) always insert explicit |
non-@code{nil}, SGML mode (and HTML mode) always insert explicit |
1750 |
closing tags. When you visit a file, these modes determine from the |
closing tags. When you visit a file, these modes determine from the |
1751 |
file contents whether it is XML or not, and set @code{sgml-xml-mode} |
file contents whether it is XML or not, and set @code{sgml-xml-mode} |
1752 |
accordingly, so that they does the right thing for the file in either |
accordingly, so that they do the right thing for the file in either |
1753 |
case. |
case. |
1754 |
|
|
1755 |
@node Nroff Mode |
@node Nroff Mode |