首页 文章

在vim中显示无与伦比的html标签

提问于
浏览
0

我在这里问了一个相关的问题:Show unmatched html tags in Notepad++

刚开始使用vim,我喜欢它 . 我喜欢这样的事实:我可以在vim中启动文件并专门使用键盘进行编辑 . 而且,一旦掌握了它,就可以快速轻松地完成它......

除此之外, I'm wondering if there's a way to highlight unmatched html tags in vim . 我've searched SOF and also looked around the web, but I'要么不够努力,要么没有人's posted how to do this or the ability to search for unmatched html tags in vim doesn'存在 .

我也想说我正在寻找一种方法来在文档中显示任何不匹配的标签(标签的形式为 "<SOME_TAG_NAME></SOME_TAG_NAME>" ) .

即使我可以指出一个关于为vim创建插件的好教程,这将是有帮助的 . 我本人会为记事本制作一个插件,但它需要使用我没有的Visual Studio . 我使用开源技术(特别是Java)进行开发 . 我假设并希望vim不要求Visual Studio编写插件...

1 回答

  • 2

    试试syntastic . 当您运行:SyntasticCheck或编写时,它将对html运行语法检查并标记不匹配的标记 .

    注意:您需要htmltidy .

    另请注意,在gvim win32上,您可能需要编辑如here所述的syntastic的syntax_checkers \ html.vim .

相关问题