Number of spaces per indentation level.
Character used for indentation. Overridden to \t when indent_with_tabs is true.
Indent with tabs instead of spaces.
Line terminator character(s). auto uses the first newline found in the input file, or \n if none is found. Accepts \n, \r\n, or \r.
Ensure the output ends with a newline character.
Preserve existing blank lines in the source.
Maximum number of consecutive blank lines to preserve. Only applies when preserve_newlines is true.
Indent the contents of both <head> and <body> elements. When false, their direct children are placed at the root indentation level. Setting this to true overrides indent_head_inner_html and indent_body_inner_html.
Indent the contents of the <body> element independently of indent_head_inner_html. Only takes effect when indent_inner_html is false.
Indent the contents of the <head> element independently of indent_body_inner_html. Only takes effect when indent_inner_html is false.
Indent Handlebars block expressions ({{#if}}, {{#each}}, etc.) and their content.
Sets the indentation level of content inside <script> tags. Accepted values: keep (match surrounding HTML), separate (use an independent indent level), normal (indent relative to the script tag).
Wrap lines that exceed this many characters. Set to 0 to disable wrapping.
Controls attribute wrapping on HTML tags. Accepted values: auto, force, force-aligned, force-expand-multiline, aligned-multiple, preserve, preserve-aligned.
wrap_attributes_min_attrs
Minimum number of attributes on a tag before forced-wrap modes take effect.
wrap_attributes_indent_size
Number of spaces to indent wrapped attributes. Defaults to indent_size. Ignored when wrap_attributes is aligned.
List of tag names to treat as inline elements. Defaults to the standard HTML inline element list: a, abbr, b, br, button, code, em, i, img, input, label, s, select, small, span, strong, textarea, and others.
Treat custom elements (hyphenated tag names) as inline elements.
List of tags whose opening/closing tags and content are left completely unformatted. Defaults to empty (no additional tags).
content_unformatted
array
default:"[\"pre\", \"textarea\"]"
List of tags whose content (but not the tags themselves) is left unformatted. The tags are still indented correctly.
List of tags that should have an extra blank line prepended before them.
templating
array
default:"[\"auto\"]"
Templating languages to recognize and pass through. In HTML context, auto enables all supported languages: django, erb, handlebars, php. Accepted values: auto, none, angular, django, erb, handlebars, php, smarty.
unformatted_content_delimiter
Keep text content together between occurrences of this string. Useful for custom delimiters in template languages.
Keep indentation whitespace on otherwise empty lines.