Next: Miscellaneous options, Previous: Edit, Up: Top [Contents][Index]
| • Fold | Folding editing | |
| • Hiding markup | ||
| • Highlight | Highlighting markup |
Next: Hiding markup, Previous: Display, Up: Display [Contents][Index]
With these commands you can make parts of the text temporarily invisible to make it easier to see the overall structure of your text.
When folding a region all the lines but the first will be invisible. The first line of the region will still be visible with an ellipsis at the end.
See Outline Mode in The Emacs Editor.
The region between point and mark will be folded (sgml-fold-region).
The region between the start and end of the current element will be
folded (sgml-fold-element).
This command can also fold the SGML declaration or the DOCTYPE declaration.
Fold all the sub elements of the current element
(sgml-fold-subelement).
Unfold the current line, assuming it is the first line of a folded
region (sgml-unfold-line).
Make all lines in current element visible (sgml-unfold-element).
Make all lines in current buffer visible (sgml-unfold-all).
Unfold current element and then fold the subelements
(sgml-expand-element). If the current element is folded this
expands what is visible.
*** Describe hide-tags
Previous: Hiding markup, Up: Display [Contents][Index]
PSGML can highlight the markup giving the markup a different face
(see Using Multiple Typefaces in The Emacs Editor).
The highlighting will only be done if the variable sgml-set-face
is non-nil. The default settings make tags bold and comments
italic, but this can be modified with the variable
sgml-markup-faces. When highlighting is on PSGML will parse after
every command until the whole buffer has been parsed or user event
occurs.
To remove the highlighting type M-x sgml-clear-faces.
If non-nil, psgml will set the face of parsed markup.
A list of markup to face mappings.
Each element looks like (markup-type . face).
Possible values for markup-type is:
commentcomment declaration
doctypedoctype declaration
end-tagend-tag
ignoredignored marked section
ms-startmarked section end, if not ignored
ms-endmarked section start, if not ignored
piprocessing instruction
sgmlSGML declaration
start-tagstart-tag
entityentity reference
shortrefshort reference
Previous: Hiding markup, Up: Display [Contents][Index]