简体   繁体   English

如何使用vim对.html文件进行合成检查无效

[英]How to invalid syntastic check for .html file with vim

Do you know how to check for invalid syntax in an HTML file? 您知道如何检查HTML文件中的无效语法吗? I'm using ember.js with syntastic plugin vim plugin and it is producing warnings that make me confused. 我正在使用带有syntastic插件vim插件的ember.js,它正在产生令我困惑的警告。

That code is invalid because <script> is not supposed to contain any other HTML tag. 该代码无效,因为<script>不应包含任何其他HTML标记。

:help syntastic shows how to disable syntax checking for a given filetype: :help syntastic显示如何禁用给定文件类型的语法检查:

let g:syntastic_mode_map={ 'mode': 'active',
                     \ 'active_filetypes': [],
                     \ 'passive_filetypes': ['html'] }

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM