[ < ] | [ > ] | [ << ] | [Plus haut] | [ >> ] | [Top] | [Table des matières] | [Index] | [ ? ] |
The major modes for SGML and HTML include indentation support and commands to operate on tags. This section describes the special commands of these modes. (HTML mode is a slightly customized variant of SGML mode.)
Interactively specify a special character and insert the SGML ‘&’-command for that character.
Interactively specify a tag and its attributes (sgml-tag
). This
command asks you for a tag name and for the attribute values, then inserts
both the opening tag and the closing tag, leaving point between them.
With a prefix argument n, the command puts the tag around the n words already present in the buffer after point. With -1 as argument, it puts the tag around the region. (In Transient Mark mode, it does this whenever a region is active.)
Interactively insert attribute values for the current tag
(sgml-attributes
).
Skip across a balanced tag group (which extends from an opening tag through
its corresponding closing tag) (sgml-skip-tag-forward
). A numeric
argument acts as a repeat count.
Skip backward across a balanced tag group (which extends from an opening tag
through its corresponding closing tag) (sgml-skip-tag-forward
). A
numeric argument acts as a repeat count.
Delete the tag at or after point, and delete the matching tag too
(sgml-delete-tag
). If the tag at or after point is an opening tag,
delete the closing tag too; if it is a closing tag, delete the opening tag
too.
Display a description of the meaning of tag tag
(sgml-tag-help
). If the argument tag is empty, describe the
tag at point.
Insert a close tag for the innermost unterminated tag
(sgml-close-tag
). If called from within a tag or a comment, close
this element instead of inserting a close tag.
Toggle a minor mode in which Latin-1 characters insert the corresponding
SGML commands that stand for them, instead of the characters themselves
(sgml-name-8bit-mode
).
Run a shell command (which you must specify) to validate the current buffer
as SGML (sgml-validate
).
Toggle the visibility of existing tags in the buffer. This can be used as a cheap preview.
SGML mode and HTML mode support XML also. In XML, every opening tag must
have an explicit closing tag. When sgml-xml-mode
is non-nil
,
SGML mode and HTML mode always insert explicit closing tags. When you visit
a file, these modes determine from the file contents whether it is XML or
not, and set sgml-xml-mode
accordingly, so that they do the right
thing for the file in either case.
[ < ] | [ > ] | [ << ] | [Plus haut] | [ >> ] | [Top] | [Table des matières] | [Index] | [ ? ] |
Ce document a été généré par Eric Reinbold le 23 Février 2009 en utilisant texi2html 1.78.