Skip to content
This repository has been archived by the owner on Sep 20, 2023. It is now read-only.

HTML: tidy

LCD 47 edited this page Jun 12, 2016 · 25 revisions

This file is no longer maintained

This file exists only as a historic reference. Documentation for syntastic checkers is now included in the manual, please see :help syntastic-checkers in Vim.


Maintainer: Martin Grenfell martin.grenfell@gmail.com

HTML Tidy is a syntax checker and formatter for HTML. See the project's page for more information.

Checker options

g:syntastic_html_tidy_ignore_errors (list; default: [])
list of errors to ignore
g:syntastic_html_tidy_blocklevel_tags (list; default: [])
list of additional blocklevel tags, to be added to --new-blocklevel-tags
g:syntastic_html_tidy_inline_tags (list; default: [])
list of additional inline tags, to be added to --new-inline-tags
g:syntastic_html_tidy_empty_tags (list; default: [])
list of additional empty tags, to be added to --new-empty-tags

The patterns in g:syntastic_html_tidy_ignore_errors are case-sensitive, and are matched as substrings (not regular expressions) against the error messages.

Alternatively, you can ignore messages using the general mechanisms of g:syntastic_quiet_messages and g:syntastic_html_tidy_quiet_messages. See :help 'syntastic_quiet_messages' for details.

Example

If tidy produces the error <input> proprietary attribute "role" and you want to ignore all errors of this specific type, add something like this to your vimrc:

let g:syntastic_html_tidy_ignore_errors = [ '<input> proprietary attribute "role"' ]
Clone this wiki locally