如何使用html整理意识到离子标签? [英] how to make syntastic with html tidy aware of ionic tags?

查看:126
本文介绍了如何使用html整理意识到离子标签?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试用vim编辑离子应用程序,该应用程序使用html整理启用了句法。不幸的是,我遇到了很多错误。

I'm trying to edit an ionic application with vim that has syntastic enabled using html tidy. Unfortunately, I'm getting a load of errors.

如何让html整洁地了解离子标签,或者失败让它忽略它们以便我不会收到这样的错误:

How can I make html tidy aware of ionic tags, or failing that make it ignore them so that I don't receive errors like this:

www/index.html|26 col 5 error| <ion-pane> is not recognized!
...
www/index.html|24 col 3 warning| <body> proprietary attribute "ng-app"


推荐答案

我的解决方案设置如下:

The solution for me was to set the following:

let g:syntastic_html_tidy_ignore_errors=["<ion-", "discarding unexpected </ion-", " proprietary attribute \"ng-"]

这篇关于如何使用html整理意识到离子标签?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆