This repository has been archived by the owner on Sep 20, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
(v3.5.0) HTML: validator
LCD 47 edited this page Dec 13, 2014
·
1 revision
Maintainer: LCD 47 [email protected]
You can instruct syntastic to use the online service, or you can install the checker from sources, and tell Syntastic to use the local validator. See the project's page for more details about validator.
This checker uses curl.
- g:syntastic_html_validator_api (string; default: 'http://validator.nu/')
- URL of the service to use for checking; leave it to the default to run the checks against
http://validator.nu/
, or set it tohttp://localhost:8888/
if you're running a local service as per the official docs - g:syntastic_html_validator_parser (string; default: empty)
- parser to use; legal values are:
xml
,xmldtd
,html
,html5
,html4
,html4tr
; set it tohtml5
to check HTML5 files; see the wiki for reference - g:syntastic_html_validator_nsfilter (string; default: empty)
- sets the
nsfilter
for the parser; see the wiki for details
Non-zero exit codes from curl
are signaled by syntastic with messages
such as:
syntastic: error: checker html/validator returned abnormal status 26
You can lookup the meaning of these codes in curl's manual.
This checker doesn't call the makeprgBuild()
function, and thus it ignores
the usual g:syntastic_html_validator_<option>
variables. The only exception
is g:syntastic_html_validator_exec
, which can still be used to override
curl
's executable.