how to make syntastic with html tidy aware of ionic tags?

独自空忆成欢 提交于 2019-12-22 08:08:34

问题


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.

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"

回答1:


The solution for me was to set the following:

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


来源:https://stackoverflow.com/questions/30366621/how-to-make-syntastic-with-html-tidy-aware-of-ionic-tags

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!