LastTribunal
LastTribunal

Reputation: 1

Enabling realtime HTML validation in VS Code and Atom

I am having a hard time finding out how to do this in either. I would have expected that it would be built-in, as it is in VS Studio; where if a tag isn't closed, a curly underscore appears as a warning.
Incidentally JS and CSS code seems to be natively validated in both Code and Atom. So why not HTML?

PS: even Notepad++ complains when a tag isn't closed..

Upvotes: 1

Views: 6093

Answers (2)

Dheeraj Vepakomma
Dheeraj Vepakomma

Reputation: 28767

For Visual Studio Code, you can use the HTMLHint extension, which integrates the HTMLHint static analysis tool into VSCode.

Upvotes: 5

idleberg
idleberg

Reputation: 12882

At least in Atom, nothing is validated by default. You need to install a linter for the language you want to validate (or linted, as it's commonly called).

A popular linter is the Atom package of the same name – linter. Once installed, you need additional providers for the syntax you want to lint. All available providers are listed on the AtomLinter website, including HTML, CSS and JavaScript.

As for Visual Studio Code, you can install a variety of linters from their marketplace.

Upvotes: 2

Related Questions