Automatická kontrola chyb při psaní HTML ve VSCode - nvbach91/4IZ268-2021-2022-ZS GitHub Wiki
Automatická kontrola chyb při psaní HTML ve VSCode
- nainstalujte si ve VSCode Plugin - HTMLHint
- do kořenové složky (
4IZ268
) si vytvořte soubor .htmlhintrc
a s následujícím obsahem:
{
"tagname-lowercase": true,
"attr-lowercase": true,
"attr-value-double-quotes": true,
"attr-value-not-empty": true,
"attr-no-duplication": true,
"doctype-first": true,
"tag-pair": true,
"tag-self-close": false,
"spec-char-escape": true,
"id-unique": true,
"src-not-empty": true,
"title-require": true,
"alt-require": true,
"doctype-html5": true,
"id-class-value": "dash",
"style-disabled": true,
"inline-style-disabled": true,
"inline-script-disabled": true,
"space-tab-mixed-disabled": "space",
"id-class-ad-disabled": true,
"href-abs-or-rel": false,
"attr-unsafe-chars": true
}
- poté automatická kontrola chyb začne fungovat

- tento plugin nezachytává úplně všechny chyby
- HTML validátor https://validator.w3.org/ lze také instalovat jako plugin v VSCode
- vyžaduje Java 8 ve vašem PC

