- How is pretty-print different from the HTML formatter?
- Pretty-print adds syntax highlighting and lets you sort attributes alphabetically; the formatter only adjusts indentation. Use pretty-print for docs and code reviews, formatter for commits.
- Can I copy the colored output?
- The colors are CSS only. Copy gives you plain indented HTML that round-trips back through any parser. The color is for human readability.
- Does it normalize self-closing tags?
- Optional — toggle 'XHTML self-close' to force `<br/>` style, or leave off for HTML5 `<br>`. The tool defaults to matching your input.
- What about doctype and comments?
- Preserved. The doctype stays on its own line; comments keep their original position but are re-indented.