Sublime Forum

How to check the html's syntax?

#1

I have installed SublimeLinter-contrib-htmllint ,how to start it check my html ?
You can see SublimeLinter-contrib-htmllint installed.

The 6th line in test.html , word herf is wrong ,the right format is href, how to make SublimeLinter-contrib-htmllint check out ?

0 Likes

#2

That’s probably a bad test-case, the linter can’t know whether that’s malformed or a custom attribute. To test whether the linter itself is working, omit a closing tag or a quote.

However, the W3C validator throw an error, so unless there’s an option for htmllint to do the same, you could use a package like W3CValidators.

0 Likes

#3

The linter isn’t working ,how to envoke it?
Which hot key can envoke it?

0 Likes