Warin / SublimeTidyHTML

Cleanup you html files with SublimeTidyHTML. Parse your files with W3C's tidy-html5 locally. No php required nor webservice call.
20 stars 4 forks source link

Change the amount of indentation from 4 to 2? #6

Closed jarodtaylor closed 11 years ago

jarodtaylor commented 11 years ago

Not really a 'bug', but just a suggestion. If it's already available, it would be nice if it were added to the documentation.

Warin commented 11 years ago

@jarodtaylor the option already exists in this plugin, you can set the indent-space property in your .sublime-setting file. Like this:

/*
 * see http://w3c.github.com/tidy-html5/quickref.html for options
 */
{
    "TidyHTML":{
        "options":[
            {"indent":"yes"}
            ,{"indent-spaces":"2"}
            ,{"wrap":"0"}
            ,{"drop-empty-elements":"no"}
        ],
        "filetypes":[".html",".htm"]
    }
}
jarodtaylor commented 11 years ago

Ah, the ref is what I was looking for (http://w3c.github.com/tidy-html5/quickref.html). Thanks!