Sorry, this extension is out of business. It has errors on linux system and I need to setup a new linux vm. Maybe it is working on win systems but I switched to vs code as default editor and got no time to continue developing this extension. If someone got time to develop this extension, feel free to use the sources.
Lint and Format HTML using Tidy-HTML5
$ apm install atom-htmltidy
Or, Settings → Install → Search for atom-htmltidy
use Keybinding ctrl-alt-1
There's a format on save
option in the settings to activate format on save for html files.
Open the Command Palette and type atom-htmltidy
.
Please provide tidy html 5 options. I don't recommend using empty options. I use this options in an angularjs project.
{
"markup" : true,
"output-xml" : false,
"input-xml" : true,
"show-warnings" : true,
"numeric-entities" : false,
"quote-marks" : false,
"quote-nbsp" : true,
"quote-ampersand" : false,
"break-before-br" : false,
"preserve-entities" : true,
"uppercase-tags" : false,
"uppercase-attributes" : false,
"indent" : "auto",
"indent-with-tabs" : false,
"indent-attributes" : true,
"sort-attributes" : "alpha",
"wrap" : 200
}
A full list of available Options: Tidy-HTML5
MIT © Andreas Weber