A simple extension that properly indents HTML responses.
Edit app/config/extension/htmlindenter.xiaohutai.yml
for options:
enabled
: Whether to do anything at all or not. Defaults totrue
.indentation_character
: Characters used for indentation. Defaults to 4 spaces.blocks
: List of HTML elements that will be output as blocks, such asdiv
.inline
: List of HTML elements that will be output as inline, such asspan
.minify
: Overrides everything and minify HTML. Defaults tofalse
.
- Based on gajus/dindent.
- Based on dactivo/Bolt.cm-HTML-minifier.