Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to invalid syntastic check for .html file with vim

Tags:

vim

syntastic

Do you know how to check for invalid syntax in an HTML file? I'm using ember.js with syntastic plugin vim plugin and it is producing warnings that make me confused.

like image 405
nobinobiru Avatar asked Aug 31 '12 12:08

nobinobiru


1 Answers

That code is invalid because <script> is not supposed to contain any other HTML tag.

:help syntastic shows how to disable syntax checking for a given filetype:

let g:syntastic_mode_map={ 'mode': 'active',
                     \ 'active_filetypes': [],
                     \ 'passive_filetypes': ['html'] }
like image 159
romainl Avatar answered Oct 22 '22 08:10

romainl