The extension to enable W3C validation support by the Nu Html Checker library.
This extention works using Java applications. You must have Java 8 or later on your local environment. If you don't have them installed, download and install a latest Java Development Kit (latest Java 8 is the minimum requirement).
After installing (or installed) the JDK, you would need to configure the Java execution path for your environment. Please restart the VS Code in order to load reliably the changed environment variables.
Then open your HTML document(s).
The path to the JDK requires to be set in the environment.
- Select Control Panel and then System.
- Click Advanced and then Environment Variables.
- Click New in the section System Variables
- Enter the Variable name as
JAVA_HOME
and the Variable value as the installation path for the Java (e.g. C:\Program Files\Java\jdk-13). - Click OK
- Find the
PATH
environment variable in the System Variables section and select it, click Edit. - Append
;%JAVA_HOME%\bin
for thePATH
variable - Click OK and also click OK
After launching the VC code, it will take some time for the results to be displayed if the HTML is invalid.