문제

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.

도움이 되었습니까?

해결책

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'] }
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top