我正在尝试使用 vim 编辑一个 ionic 应用程序,该应用程序使用 html tidy 启用了语法。不幸的是,我收到了很多错误。
我怎样才能让 html 整洁地意识到 ionic 标签,或者失败了,让它忽略它们,这样我就不会收到这样的错误:
www/index.html|26 col 5 error| <ion-pane> is not recognized!
...
www/index.html|24 col 3 warning| <body> proprietary attribute "ng-app"
最佳答案
我的解决方案是设置以下内容:
let g:syntastic_html_tidy_ignore_errors=["<ion-", "discarding unexpected </ion-", " proprietary attribute \"ng-"]
关于vim - 如何使 html 整齐地意识到 ionic 标签的语法?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30366621/