是否可以向Visual Studio添加HTML5验证? [英] Is it possible to add HTML5 validation to Visual Studio?

查看:213
本文介绍了是否可以向Visual Studio添加HTML5验证?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Visual Web Developer Express Edition 2008中的< canvas> ,这是一个HTML5标记,并且是HTML编辑器中的验证器告诉我这是一个无效的标签。那是因为它设置为针对XHTML 1.0 Transitional进行验证。我宁愿不这样做,并根据HTML5的文档类型告诉我什么是有效或无效,但我无法在首选项中的任何地方找到表明这是可能的。



有没有办法让Visual Studio根据HTML5进行验证,或手动添加新的规范参考?我宁愿不必进入并手动添加标签,这似乎是目前唯一的选择。 解决方案

看起来像Visual Web Developer团队通过自己添加HTML5支持来解决问题:
http://blogs.msdn.com/webdevtools/archive/2009/11 /18/html-5-intellisense-and-validation-schema-for-visual-studio-2008-and-visual-web-developer.aspx


您大概都知道新的HTML 5标准即将到来。我们制作了一个新的intellisense模式,您可以将其添加到VS 2008或VWD Express 2008中,并获取HTML 5元素的智能感知和验证。


I'm working on a page using <canvas>, which is a HTML5 tag, in Visual Web Developer Express Edition 2008, and the validator in the HTML editor is telling me it's an invalid tag. That's because it's set to validate against XHTML 1.0 Transitional. I'd prefer for it to not do that and tell me what's valid or invalid based on the HTML5 doctype, but I can't find anywhere in the preferences that suggests this would be possible.

Is there a way to tell Visual Studio to validate against HTML5, or add a new spec reference manually? I'd prefer not to have to go in and add tags manually, which appears to be the only option at the moment.

解决方案

It looks like the Visual Web Developer team solved the problem by adding HTML5 support themselves: http://blogs.msdn.com/webdevtools/archive/2009/11/18/html-5-intellisense-and-validation-schema-for-visual-studio-2008-and-visual-web-developer.aspx

You all probably know that new HTML 5 standard is coming. We made a new intellisense schema that you can add to VS 2008 or VWD Express 2008 and get intellisense and validation on HTML 5 elements.

这篇关于是否可以向Visual Studio添加HTML5验证?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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