UNPKG

htmltidy-options

Version:

Configuration options for htmltidy

689 lines (688 loc) 18.1 kB
module.exports = { 'Kastor tidy - XHTML page UTF-8' : { 'add-xml-decl' : 'yes', 'show-body-only' : 'no', 'clean' : 'no', 'char-encoding' : 'utf8', 'output-html' : 'no', 'output-xml' : 'no', 'output-xhtml' : 'yes', 'ascii-chars' : 'no', 'doctype' : 'strict', 'bare' : 'no', 'fix-uri' : 'yes', 'indent' : 'yes', 'indent-spaces' : '4', 'tab-size' : '4', 'wrap-attributes' : 'yes', 'wrap' : '0', 'indent-attributes' : 'yes', 'join-classes' : 'no', 'join-styles' : 'no', 'enclose-block-text' : 'yes', 'fix-bad-comments' : 'yes', 'fix-backslash' : 'yes', 'replace-color' : 'no', 'wrap-asp' : 'no', 'wrap-jste' : 'no', 'wrap-php' : 'no', 'write-back' : 'yes', 'drop-proprietary-attributes' : 'no', 'hide-comments' : 'no', 'hide-endtags' : 'no', 'literal-attributes' : 'no', 'drop-empty-paras' : 'yes', 'enclose-text' : 'no', 'quote-ampersand' : 'yes', 'quote-marks' : 'no', 'quote-nbsp' : 'yes', 'vertical-space' : 'yes', 'wrap-script-literals' : 'no', 'tidy-mark' : 'no', 'merge-divs' : 'no', 'repeated-attributes' : 'keep-last', 'break-before-br' : 'yes' }, 'Kastor tidy - HTML page UTF-8' : { 'show-body-only' : 'no', 'clean' : 'no', 'char-encoding' : 'utf8', 'output-html' : 'yes', 'output-xml' : 'no', 'output-xhtml' : 'no', 'ascii-chars' : 'no', 'doctype' : 'transitional', 'bare' : 'no', 'fix-uri' : 'yes', 'indent' : 'yes', 'indent-spaces' : '4', 'tab-size' : '4', 'wrap-attributes' : 'yes', 'wrap' : '0', 'indent-attributes' : 'yes', 'join-classes' : 'no', 'join-styles' : 'no', 'enclose-block-text' : 'yes', 'fix-bad-comments' : 'yes', 'fix-backslash' : 'yes', 'replace-color' : 'no', 'wrap-asp' : 'no', 'wrap-jste' : 'no', 'wrap-php' : 'no', 'write-back' : 'yes', 'drop-proprietary-attributes' : 'no', 'hide-comments' : 'no', 'hide-endtags' : 'no', 'literal-attributes' : 'no', 'drop-empty-paras' : 'yes', 'enclose-text' : 'no', 'quote-ampersand' : 'yes', 'quote-marks' : 'no', 'quote-nbsp' : 'yes', 'vertical-space' : 'yes', 'wrap-script-literals' : 'no', 'tidy-mark' : 'no', 'merge-divs' : 'no', 'repeated-attributes' : 'keep-last', 'break-before-br' : 'yes' }, 'Kastor tidy - XHTML fragment UTF-8' : { 'show-body-only' : 'yes', 'clean' : 'no', 'char-encoding' : 'utf8', 'output-html' : 'no', 'output-xml' : 'no', 'output-xhtml' : 'yes', 'ascii-chars' : 'no', 'doctype' : 'strict', 'bare' : 'no', 'fix-uri' : 'yes', 'indent' : 'yes', 'indent-spaces' : '4', 'tab-size' : '4', 'wrap-attributes' : 'yes', 'wrap' : '0', 'indent-attributes' : 'yes', 'join-classes' : 'no', 'join-styles' : 'no', 'enclose-block-text' : 'yes', 'fix-bad-comments' : 'yes', 'fix-backslash' : 'yes', 'replace-color' : 'no', 'wrap-asp' : 'no', 'wrap-jste' : 'no', 'wrap-php' : 'no', 'write-back' : 'yes', 'drop-proprietary-attributes' : 'no', 'hide-comments' : 'no', 'hide-endtags' : 'no', 'literal-attributes' : 'no', 'drop-empty-paras' : 'yes', 'enclose-text' : 'no', 'quote-ampersand' : 'yes', 'quote-marks' : 'no', 'quote-nbsp' : 'yes', 'vertical-space' : 'yes', 'wrap-script-literals' : 'no', 'tidy-mark' : 'no', 'merge-divs' : 'no', 'repeated-attributes' : 'keep-last', 'break-before-br' : 'yes' }, 'Kastor tidy - HTML fragment UTF-8' : { 'show-body-only' : 'yes', 'clean' : 'no', 'char-encoding' : 'utf8', 'output-html' : 'yes', 'output-xml' : 'no', 'output-xhtml' : 'no', 'ascii-chars' : 'no', 'doctype' : 'transitional', 'bare' : 'no', 'fix-uri' : 'yes', 'indent' : 'yes', 'indent-spaces' : '4', 'tab-size' : '4', 'wrap-attributes' : 'yes', 'wrap' : '0', 'indent-attributes' : 'yes', 'join-classes' : 'no', 'join-styles' : 'no', 'enclose-block-text' : 'yes', 'fix-bad-comments' : 'yes', 'fix-backslash' : 'yes', 'replace-color' : 'no', 'wrap-asp' : 'no', 'wrap-jste' : 'no', 'wrap-php' : 'no', 'write-back' : 'yes', 'drop-proprietary-attributes' : 'no', 'hide-comments' : 'no', 'hide-endtags' : 'no', 'literal-attributes' : 'no', 'drop-empty-paras' : 'yes', 'enclose-text' : 'no', 'quote-ampersand' : 'yes', 'quote-marks' : 'no', 'quote-nbsp' : 'yes', 'vertical-space' : 'yes', 'wrap-script-literals' : 'no', 'tidy-mark' : 'no', 'merge-divs' : 'no', 'repeated-attributes' : 'keep-last', 'break-before-br' : 'yes' }, 'Kastor tidy - XHTML Clean page UTF-8' : { 'add-xml-decl' : 'yes', 'show-body-only' : 'no', 'clean' : 'yes', 'css-prefix' : 'tidy', 'char-encoding' : 'utf8', 'output-html' : 'no', 'output-xml' : 'no', 'output-xhtml' : 'yes', 'ascii-chars' : 'no', 'doctype' : 'strict', 'bare' : 'yes', 'fix-uri' : 'yes', 'indent' : 'yes', 'indent-spaces' : '4', 'tab-size' : '4', 'wrap-attributes' : 'yes', 'wrap' : '0', 'indent-attributes' : 'yes', 'join-classes' : 'no', 'join-styles' : 'no', 'enclose-block-text' : 'yes', 'fix-bad-comments' : 'yes', 'fix-backslash' : 'yes', 'replace-color' : 'no', 'wrap-asp' : 'no', 'wrap-jste' : 'no', 'wrap-php' : 'no', 'write-back' : 'yes', 'drop-proprietary-attributes' : 'yes', 'hide-comments' : 'no', 'hide-endtags' : 'no', 'literal-attributes' : 'no', 'drop-empty-paras' : 'yes', 'drop-font-tags' : 'yes', 'enclose-text' : 'yes', 'quote-ampersand' : 'yes', 'quote-marks' : 'no', 'quote-nbsp' : 'yes', 'vertical-space' : 'yes', 'wrap-script-literals' : 'no', 'tidy-mark' : 'no', 'merge-divs' : 'no', 'repeated-attributes' : 'keep-last', 'break-before-br' : 'yes', 'word-2000' : 'no' }, 'Kastor tidy - HTML Clean page UTF-8' : { 'show-body-only' : 'no', 'clean' : 'yes', 'css-prefix' : 'tidy', 'char-encoding' : 'utf8', 'output-html' : 'yes', 'output-xml' : 'no', 'output-xhtml' : 'no', 'ascii-chars' : 'no', 'doctype' : 'transitional', 'bare' : 'yes', 'fix-uri' : 'yes', 'indent' : 'yes', 'indent-spaces' : '4', 'tab-size' : '4', 'wrap-attributes' : 'yes', 'wrap' : '0', 'indent-attributes' : 'yes', 'join-classes' : 'no', 'join-styles' : 'no', 'enclose-block-text' : 'yes', 'fix-bad-comments' : 'yes', 'fix-backslash' : 'yes', 'replace-color' : 'no', 'wrap-asp' : 'no', 'wrap-jste' : 'no', 'wrap-php' : 'no', 'write-back' : 'yes', 'drop-proprietary-attributes' : 'yes', 'hide-comments' : 'no', 'hide-endtags' : 'no', 'literal-attributes' : 'no', 'drop-empty-paras' : 'yes', 'drop-font-tags' : 'yes', 'enclose-text' : 'yes', 'quote-ampersand' : 'yes', 'quote-marks' : 'no', 'quote-nbsp' : 'yes', 'vertical-space' : 'yes', 'wrap-script-literals' : 'no', 'tidy-mark' : 'no', 'merge-divs' : 'no', 'repeated-attributes' : 'keep-last', 'break-before-br' : 'yes', 'word-2000' : 'no' }, 'Kastor tidy - XHTML Clean fragment UTF-8' : { 'show-body-only' : 'yes', 'clean' : 'yes', 'css-prefix' : 'tidy', 'char-encoding' : 'utf8', 'output-html' : 'no', 'output-xml' : 'no', 'output-xhtml' : 'yes', 'ascii-chars' : 'no', 'doctype' : 'strict', 'bare' : 'yes', 'fix-uri' : 'yes', 'indent' : 'yes', 'indent-spaces' : '4', 'tab-size' : '4', 'wrap-attributes' : 'yes', 'wrap' : '0', 'indent-attributes' : 'yes', 'join-classes' : 'no', 'join-styles' : 'no', 'enclose-block-text' : 'yes', 'fix-bad-comments' : 'yes', 'fix-backslash' : 'yes', 'replace-color' : 'no', 'wrap-asp' : 'no', 'wrap-jste' : 'no', 'wrap-php' : 'no', 'write-back' : 'yes', 'drop-proprietary-attributes' : 'yes', 'hide-comments' : 'no', 'hide-endtags' : 'no', 'literal-attributes' : 'no', 'drop-empty-paras' : 'yes', 'enclose-text' : 'yes', 'quote-ampersand' : 'yes', 'quote-marks' : 'no', 'quote-nbsp' : 'yes', 'vertical-space' : 'yes', 'wrap-script-literals' : 'no', 'tidy-mark' : 'no', 'merge-divs' : 'no', 'repeated-attributes' : 'keep-last', 'break-before-br' : 'yes', 'word-2000' : 'no' }, 'Kastor tidy - HTML Clean fragment UTF-8' : { 'show-body-only' : 'yes', 'clean' : 'yes', 'css-prefix' : 'tidy', 'char-encoding' : 'utf8', 'output-html' : 'yes', 'output-xml' : 'no', 'output-xhtml' : 'no', 'ascii-chars' : 'no', 'doctype' : 'transitional', 'bare' : 'yes', 'fix-uri' : 'yes', 'indent' : 'yes', 'indent-spaces' : '4', 'tab-size' : '4', 'wrap-attributes' : 'yes', 'wrap' : '0', 'indent-attributes' : 'yes', 'join-classes' : 'no', 'join-styles' : 'no', 'enclose-block-text' : 'yes', 'fix-bad-comments' : 'yes', 'fix-backslash' : 'yes', 'replace-color' : 'no', 'wrap-asp' : 'no', 'wrap-jste' : 'no', 'wrap-php' : 'no', 'write-back' : 'yes', 'drop-proprietary-attributes' : 'yes', 'hide-comments' : 'no', 'hide-endtags' : 'no', 'literal-attributes' : 'no', 'drop-empty-paras' : 'yes', 'enclose-text' : 'yes', 'quote-ampersand' : 'yes', 'quote-marks' : 'no', 'quote-nbsp' : 'yes', 'vertical-space' : 'yes', 'wrap-script-literals' : 'no', 'tidy-mark' : 'no', 'merge-divs' : 'no', 'repeated-attributes' : 'keep-last', 'break-before-br' : 'yes', 'word-2000' : 'no' }, 'Kastor tidy - XHTML fragment raw' : { 'show-body-only' : 'yes', 'clean' : 'no', 'char-encoding' : 'raw', 'output-html' : 'no', 'output-xml' : 'no', 'output-xhtml' : 'yes', 'ascii-chars' : 'no', 'doctype' : 'strict', 'bare' : 'no', 'fix-uri' : 'yes', 'indent' : 'yes', 'indent-spaces' : '4', 'tab-size' : '4', 'wrap-attributes' : 'yes', 'wrap' : '0', 'indent-attributes' : 'yes', 'join-classes' : 'no', 'join-styles' : 'no', 'enclose-block-text' : 'yes', 'fix-bad-comments' : 'yes', 'fix-backslash' : 'yes', 'replace-color' : 'no', 'wrap-asp' : 'no', 'wrap-jste' : 'no', 'wrap-php' : 'no', 'write-back' : 'yes', 'drop-proprietary-attributes' : 'no', 'hide-comments' : 'no', 'hide-endtags' : 'no', 'literal-attributes' : 'no', 'drop-empty-paras' : 'yes', 'enclose-text' : 'no', 'quote-ampersand' : 'yes', 'quote-marks' : 'no', 'quote-nbsp' : 'yes', 'vertical-space' : 'yes', 'wrap-script-literals' : 'no', 'tidy-mark' : 'no', 'merge-divs' : 'no', 'repeated-attributes' : 'keep-last', 'break-before-br' : 'yes' }, 'Kastor tidy - XHTML fragment ascii' : { 'show-body-only' : 'yes', 'clean' : 'no', 'char-encoding' : 'ascii', 'output-html' : 'no', 'output-xml' : 'no', 'output-xhtml' : 'yes', 'ascii-chars' : 'no', 'doctype' : 'strict', 'bare' : 'no', 'fix-uri' : 'yes', 'indent' : 'yes', 'indent-spaces' : '4', 'tab-size' : '4', 'wrap-attributes' : 'yes', 'wrap' : '0', 'indent-attributes' : 'yes', 'join-classes' : 'no', 'join-styles' : 'no', 'enclose-block-text' : 'yes', 'fix-bad-comments' : 'yes', 'fix-backslash' : 'yes', 'replace-color' : 'no', 'wrap-asp' : 'no', 'wrap-jste' : 'no', 'wrap-php' : 'no', 'write-back' : 'yes', 'drop-proprietary-attributes' : 'no', 'hide-comments' : 'no', 'hide-endtags' : 'no', 'literal-attributes' : 'no', 'drop-empty-paras' : 'yes', 'enclose-text' : 'no', 'quote-ampersand' : 'yes', 'quote-marks' : 'no', 'quote-nbsp' : 'yes', 'vertical-space' : 'yes', 'wrap-script-literals' : 'no', 'tidy-mark' : 'no', 'merge-divs' : 'no', 'repeated-attributes' : 'keep-last', 'break-before-br' : 'yes' }, 'Kastor tidy - HTML fragment raw' : { 'show-body-only' : 'yes', 'clean' : 'no', 'char-encoding' : 'raw', 'output-html' : 'yes', 'output-xml' : 'no', 'output-xhtml' : 'no', 'ascii-chars' : 'no', 'doctype' : 'transitional', 'bare' : 'no', 'fix-uri' : 'yes', 'indent' : 'yes', 'indent-spaces' : '4', 'tab-size' : '4', 'wrap-attributes' : 'yes', 'wrap' : '0', 'indent-attributes' : 'yes', 'join-classes' : 'no', 'join-styles' : 'no', 'enclose-block-text' : 'yes', 'fix-bad-comments' : 'yes', 'fix-backslash' : 'yes', 'replace-color' : 'no', 'wrap-asp' : 'no', 'wrap-jste' : 'no', 'wrap-php' : 'no', 'write-back' : 'yes', 'drop-proprietary-attributes' : 'no', 'hide-comments' : 'no', 'hide-endtags' : 'no', 'literal-attributes' : 'no', 'drop-empty-paras' : 'yes', 'enclose-text' : 'no', 'quote-ampersand' : 'yes', 'quote-marks' : 'no', 'quote-nbsp' : 'yes', 'vertical-space' : 'yes', 'wrap-script-literals' : 'no', 'tidy-mark' : 'no', 'merge-divs' : 'no', 'repeated-attributes' : 'keep-last', 'break-before-br' : 'yes' }, 'Kastor tidy - HTML fragment ascii' : { 'show-body-only' : 'yes', 'clean' : 'no', 'char-encoding' : 'ascii', 'output-html' : 'yes', 'output-xml' : 'no', 'output-xhtml' : 'no', 'ascii-chars' : 'no', 'doctype' : 'transitional', 'bare' : 'no', 'fix-uri' : 'yes', 'indent' : 'yes', 'indent-spaces' : '4', 'tab-size' : '4', 'wrap-attributes' : 'yes', 'wrap' : '0', 'indent-attributes' : 'yes', 'join-classes' : 'no', 'join-styles' : 'no', 'enclose-block-text' : 'yes', 'fix-bad-comments' : 'yes', 'fix-backslash' : 'yes', 'replace-color' : 'no', 'wrap-asp' : 'no', 'wrap-jste' : 'no', 'wrap-php' : 'no', 'write-back' : 'yes', 'drop-proprietary-attributes' : 'no', 'hide-comments' : 'no', 'hide-endtags' : 'no', 'literal-attributes' : 'no', 'drop-empty-paras' : 'yes', 'enclose-text' : 'no', 'quote-ampersand' : 'yes', 'quote-marks' : 'no', 'quote-nbsp' : 'yes', 'vertical-space' : 'yes', 'wrap-script-literals' : 'no', 'tidy-mark' : 'no', 'merge-divs' : 'no', 'repeated-attributes' : 'keep-last', 'break-before-br' : 'yes' }, 'Kastor tidy - XML Reindent UTF-8' : { 'input-xml' : 'yes', 'add-xml-decl' : 'no', 'show-body-only' : 'no', 'clean' : 'no', 'char-encoding' : 'utf8', 'output-html' : 'no', 'output-xml' : 'yes', 'output-xhtml' : 'no', 'ascii-chars' : 'no', 'bare' : 'no', 'fix-uri' : 'yes', 'indent' : 'yes', 'indent-spaces' : '4', 'tab-size' : '4', 'wrap-attributes' : 'yes', 'wrap' : '0', 'indent-attributes' : 'yes', 'join-classes' : 'no', 'join-styles' : 'no', 'enclose-block-text' : 'yes', 'fix-bad-comments' : 'yes', 'fix-backslash' : 'yes', 'replace-color' : 'no', 'wrap-asp' : 'no', 'wrap-jste' : 'no', 'wrap-php' : 'no', 'write-back' : 'yes', 'drop-proprietary-attributes' : 'no', 'hide-comments' : 'no', 'hide-endtags' : 'no', 'literal-attributes' : 'no', 'drop-empty-paras' : 'yes', 'enclose-text' : 'no', 'quote-ampersand' : 'yes', 'quote-marks' : 'no', 'quote-nbsp' : 'yes', 'vertical-space' : 'yes', 'wrap-script-literals' : 'no', 'tidy-mark' : 'no', 'merge-divs' : 'no', 'repeated-attributes' : 'keep-last', 'break-before-br' : 'yes' }, 'TiDy clean Microsoft Word 2000 document' : { 'doctype' : 'auto', 'drop-empty-paras' : 'yes', 'fix-bad-comments' : 'yes', 'fix-uri' : 'yes', 'join-styles' : 'yes', 'lower-literals' : 'yes', 'ncr' : 'yes', 'quote-ampersand' : 'yes', 'quote-nbsp' : 'yes', 'word-2000' : 'yes', 'markup' : 'yes', 'wrap-jste' : 'yes', 'wrap-php' : 'yes', 'wrap-sections' : 'yes', 'write-back' : 'yes' }, 'TiDy clean Document - quote' : { 'quote-ampersand' : 'yes', 'quote-marks' : 'yes', 'quote-nbsp' : 'yes', 'write-back' : 'yes' }, 'TiDy upgrade to CSS' : { 'add-xml-decl' : 'no', 'alt-text' : 'Image', 'break-before-br' : 'no', 'clean' : 'yes', 'doctype' : 'auto', 'drop-empty-paras' : 'no', 'drop-font-tags' : 'yes', 'fix-backslash' : 'yes', 'fix-bad-comments' : 'yes', 'hide-endtags' : 'no', 'char-encoding' : 'raw', 'indent' : 'yes', 'indent-spaces' : '2', 'input-xml' : 'no', 'markup' : 'yes', 'quiet' : 'yes', 'tidy-mark' : 'no', 'uppercase-attributes' : 'no', 'uppercase-tags' : 'no', 'word-2000' : 'yes', 'wrap' : '100', 'wrap-asp' : 'yes', 'wrap-attributes' : 'yes', 'wrap-jste' : 'yes', 'wrap-php' : 'yes', 'write-back' : 'yes' }, 'TiDy convert to XML' : { 'add-xml-decl' : 'yes', 'alt-text' : 'Image', 'break-before-br' : 'no', 'clean' : 'yes', 'doctype' : 'AUTO', 'drop-empty-paras' : 'no', 'drop-font-tags' : 'yes', 'fix-bad-comments' : 'yes', 'hide-endtags' : 'no', 'char-encoding' : 'raw', 'indent' : 'yes', 'indent-spaces' : '2', 'input-xml' : 'no', 'markup' : 'yes', 'output-xml' : 'yes', 'quiet' : 'yes', 'tidy-mark' : 'no', 'uppercase-attributes' : 'no', 'uppercase-tags' : 'no', 'word-2000' : 'no', 'wrap' : '100', 'wrap-asp' : 'yes', 'wrap-attributes' : 'yes', 'wrap-jste' : 'yes', 'wrap-php' : 'yes', 'write-back' : 'yes' }, 'Tidy convert to XHTML' : { 'add-xml-decl' : 'no', 'alt-text' : 'Image', 'break-before-br' : 'no', 'clean' : 'yes', 'doctype' : 'auto', 'drop-empty-paras' : 'no', 'drop-font-tags' : 'yes', 'error-file' : 'error.log', 'fix-backslash' : 'yes', 'fix-bad-comments' : 'yes', 'hide-endtags' : 'no', 'char-encoding' : 'raw', 'indent' : 'yes', 'indent-spaces' : '2', 'input-xml' : 'no', 'markup' : 'yes', 'output-xhtml' : 'yes', 'output-xml' : 'no', 'quiet' : 'yes', 'tidy-mark' : 'no', 'uppercase-attributes' : 'no', 'uppercase-tags' : 'no', 'word-2000' : 'no', 'wrap' : '100', 'wrap-asp' : 'yes', 'wrap-attributes' : 'yes', 'wrap-jste' : 'yes', 'wrap-php' : 'yes', 'write-back' : 'yes' }, 'Tidy Reindent XML' : { 'input-xml' : 'yes', 'indent' : 'yes' } };