XML mode
The XML mode supports these configuration parameters:
htmlMode (boolean)
- This switches the mode to parse HTML instead of XML. This
means attributes do not have to be quoted, and some elements
(such as
br
) do not require a closing tag. matchClosing (boolean)
- Controls whether the mode checks that close tags match the corresponding opening tag, and highlights mismatches as errors. Defaults to true.
alignCDATA (boolean)
- Setting this to true will force the opening tag of CDATA blocks to not be indented.
MIME types defined: application/xml
, text/html
.