Formatter for HTML, XML.
This Formatter plugin for Formatter provides an interface to tidy(-html5).
Install tidy or tidy-html5
(ex: on OSX with brew -> brew install tidy-html5
)
Install Formatter package via Atom
apm install formatter
Install formatter-tidy package via Atom
apm install formatter-tidy
Tidy is primarily a validator and not a HTML/XML formatter.
Default (inspired from IntelliJ):
'atom-text-editor':
'alt-ctrl-l': 'formatter:format-code'
'alt-cmd-l': 'formatter:format-code'
Path to the exectuable
HTML language
Enable formatter for HTML language (need restart Atom)
Arguments passed to the formatter HTML language
--wrap, 160
XML language
Enable formatter for XML language (need restart Atom)
Arguments passed to the formatter XML language
--wrap, 80, --indent-attributes, yes
git checkout -b my-new-feature
git commit -am 'Add some feature'
git push origin my-new-feature
See LICENSE.md