| CssFormatter | Converts a style sheet, a rule or a declaration block to CSS text. CssFormatter.Default uses the CSSOM serialization (https://drafts.csswg.org/cssom/#serialize-a-css-rule); CssMinifyFormatter and CssPrettyFormatter produce a minified or an indented output. |
| CssMinifyFormatter | Writes a minified CSS text: the whitespace that is not needed is removed, as well as the semicolon of the last declaration of a block. The style sheet is not modified. |
| CssPrettyFormatter | Writes an indented CSS text, to read or compare style sheets: each rule and each declaration is written on its own line, indented by its depth, and each selector of the selector list of a style rule is written on its own line. |
| CssWriter | Writes the text of a style sheet, a rule or a declaration block. The default implementation is the CSSOM serialization (https://drafts.csswg.org/cssom/#serialize-a-css-rule); a derived class customizes the output by overriding the method of each part of a rule. |
| HtmlFormatter | Converts a node to HTML markup. HtmlFormatter.Default uses the HTML fragment serialization algorithm (https://html.spec.whatwg.org/multipage/parsing.html#serialising-html-fragments); HtmlMinifyFormatter and HtmlPrettyFormatter produce a minified or an indented output. |
| HtmlMarkupWriter | Writes the markup of a node. The default implementation is the HTML fragment serialization algorithm (https://html.spec.whatwg.org/multipage/parsing.html#serialising-html-fragments); a derived class customizes the output by overriding the method of each kind of node. |
| HtmlMinifyFormatter | Writes a minified HTML markup: the comments, the collapsible whitespace, the optional tags and the unneeded attribute quotes are removed, and only the characters that must be escaped are escaped. The document is not modified. |
| HtmlPrettyFormatter | Writes an indented HTML markup, to read or compare documents: each node is written on its own line, indented by its depth, and the whitespace of the text is collapsed and trimmed. |