我可以停止ReSharper反对离子HTML标记吗? [英] Can I stop ReSharper objecting to Ionic HTML tags?
问题描述
我刚刚打开了我的第一个基于Ionic的移动项目,并且HTML模板中充满了Ionic标签,如< ion-modal-view>
,它礼貌,ReSharper(我深深地怀疑),与模板中其他标签的一半一样,有一个波浪形的蓝色下划线。我对屏幕上的这些行感到遗憾,因为它们表明有什么不对(好的,也许对于W3C来说这是错误的),当没有错误时。我能摆脱这些该死的蓝线吗?
我做了一些搜索和couldn找不到关于Ionic是否可以写成有效的html的任何信息。
因此,我个人认为,我应该考虑是否编写支持Ionic's的XHTML DTD mark-up是一种选择,或者选择了一个我可以编写有效标记的框架。
因为我猜这些都不是你可以选择的选项到:
Resharper - >选项 - >代码检查 - >设置
在标题元素跳过 -
找到文件掩码并添加 *。html
(或其他任何可能使用的文件扩展名)或找到文件和文件夹并标记您不希望Resharper查看的特定文件/文件夹。
I've just opened my first Ionic based mobile project, and the HTML templates are really full of Ionic tags, like <ion-modal-view>
, which courtesy, ReSharper (I deeply suspect), has a wavy blue underline, as do half the other tags in the template. I deplore working with these lines on the screen, as they indicate there is something wrong (OK, maybe for the W3C it is wrong), when there is nothing wrong. Can, and how, I get rid of these damned blue lines?
Well I'm a big believer in writing valid html. Standards are there for a reason, and we can't complain about Microsoft not following them with IE if we don't follow them ourselves.
I did some searching and couldn't find any information on whether Ionic could be written as valid html.
So personally were I in your position I'd either consider whether writing an XHTML DTD that supported Ionic's mark-up was an option, or chose a framework that I could write valid mark-up in.
Since I'm guessing neither of those is an option you could go to:
Resharper -> Options -> Code Inspection -> Settings
Look for the section under the heading Elements to skip -
Either find File masks and add *.html
(or whatever other file extension you might be using) or find Files and folders and mark the specific files/folders that you don't want Resharper to look at.
这篇关于我可以停止ReSharper反对离子HTML标记吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!