gpt4 book ai didi

vim - 如何使 html 整齐地意识到 ionic 标签的语法?

转载 作者:行者123 更新时间:2023-12-04 22:59:29 25 4
gpt4 key购买 nike

我正在尝试使用 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/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com