GNU Info

Info Node: (psgml.info)Highlight

(psgml.info)Highlight


Prev: Hiding markup Up: Display
Enter node , (file) or (file)node

Highlighting markup
===================

   PSGML can highlight the markup giving the markup a different "face"
(Note: Using Multiple Typefaces.).  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'.

 - User Option: sgml-set-face
     If non-nil, psgml will set the face of parsed markup.

 - User Option: sgml-markup-faces
     A list of markup to face mappings.  Each element looks like
     `(MARKUP-TYPE . FACE)'.  Possible values for MARKUP-TYPE is:

    `comment'
          comment declaration

    `doctype'
          doctype declaration

    `end-tag'
          end-tag

    `ignored'
          ignored marked section

    `ms-start'
          marked section end, if not ignored

    `ms-end'
          marked section start, if not ignored

    `pi'
          processing instruction

    `sgml'
          SGML declaration

    `start-tag'
          start-tag

    `entity'
          entity reference

    `shortref'
          short reference


automatically generated by info2www version 1.2.2.9