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.
Asked
Active
Viewed 2,932 times
5
-
Can you provide an example? Perhaps some of the HTML code and the warnings that it is producing? – jasonlfunk Aug 31 '12 at 12:51
-
hi,@jasonlfunk, my code is – nobinobiru Aug 31 '12 at 13:03
-
it outputs '<' + '/' + letter not allowed here warnings. – nobinobiru Aug 31 '12 at 13:04
1 Answers
13
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'] }

romainl
- 186,200
- 21
- 280
- 313