Visual Studio 2010 是否支持 HTML 5?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/1682180/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-29 01:12:37  来源:igfitidea点击:

Will Visual Studio 2010 support HTML 5?

htmlvisual-studio-2010visual-studiotemplates

提问by Chris

Since Visual Studio 2010 is slated for release in March of 2010 and HTML 5 is now starting to be used even more widely, I would like to know if Visual Studio will ship with HTML 5 templates, standard controls and support for the more common markup?

由于 Visual Studio 2010 计划于 2010 年 3 月发布,并且 HTML 5 现在开始得到更广泛的使用,我想知道 Visual Studio 是否会附带 HTML 5 模板、标准控件并支持更常见的标记?

A definition for support of HTML 5 would be that any new version of Visual Studio should have similar support for code-completion, validation and markup that is currently supported for HTML 4.01 and XHTML 1.0 and 1.1.

支持 HTML 5 的定义是,任何新版本的 Visual Studio 都应具有与 HTML 4.01 和 XHTML 1.0 和 1.1 当前支持的代码完成、验证和标记类似的支持。

Update From the Visual Web Develolper Team Blog:

来自 Visual Web Developer 团队博客的更新:

HTML 5 intellisense and validation schema for Visual Studio 2008 and Visual Web Developer is for downloading. Follow the instructions posted on the page to install the new scheme. Seems like the Visual Studio Team will be supporting HTML 5 after all.

适用于 Visual Studio 2008 和 Visual Web Developer 的 HTML 5 智能感知和验证架构可供下载。按照页面上发布的说明安装新方案。毕竟,Visual Studio 团队似乎将支持 HTML 5。

February 2011 Update from the Visual Web Developer Team Blog

2011 年 2 月来自 Visual Web 开发人员团队博客的更新

Visual Studio 2010 SP1 finally adds some support for HTML5. "The entire HTML5 specification isn't supported but most of the new elements and attributes are. That means you get both intellisense and validation for HTML5 with SP1." Read More Here

Visual Studio 2010 SP1 终于添加了一些对 HTML5 的支持。“不支持整个 HTML5 规范,但大多数新元素和属性都支持。这意味着您可以通过 SP1 获得 HTML5 的智能感知和验证。” 在这里阅读更多

May 2011 Update from Scott Guthrie's blog

2011 年 5 月来自 Scott Guthrie 博客的更新

Just this month, Microsoft has pushed out some HTML5 improvements with the ASP.NET MVC 3 Tools Update. While the post seems to be very pro MVC, it's nice to see that Visual Studio 2010 now has default templates and intelisense support for HTML5; along with a nice addition of a jQuery script that will give some backwards support for older browsers.

就在本月,微软通过 ASP.NET MVC 3 工具更新推出了一些HTML5 改进。虽然该帖子似乎非常专业 MVC,但很高兴看到 Visual Studio 2010 现在具有对 HTML5 的默认模板和智能感知支持;加上一个很好的 jQuery 脚本,它将为旧浏览器提供一些向后支持。

采纳答案by Tejas

I think real question is - will Microsoft support HTML5? Multipleplaces on the internet I found that Microsoft is seriously considering to support HTML5. If that is true, it makes sense to expect VS 2010 to support HTML5.

我认为真正的问题是——微软会支持 HTML5 吗?在互联网上的多个地方我发现微软正在认真考虑支持 HTML5。如果这是真的,那么期望 VS 2010 支持 HTML5 是有道理的。

回答by Oskar Austegard

The download from the Web Developer Team blogis for Visual Studio 2008. In order to add schema validation support to Visual Studio 2010 you'll want to make some subtle changes:

从Web开发团队博客下载是Visual Studio 2008中为架构验证支持添加到Visual Studio 2010中,你会希望做一些微妙的变化:

Add the schema to your 2010 (10.0) folder rather than to your 9.0 folder (duh): So e.g. change the path in the readme from

将架构添加到您的 2010 (10.0) 文件夹而不是您的 9.0 文件夹(废话):因此,例如更改自述文件中的路径

C:\Program Files (x86)\Microsoft Visual Studio 9.0\Common7\Packages\schemas\html

to

C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\Packages\schemas\html

Second, EDITthe registry file that is appropriate for your Windows bit version, again replacing the 9.0 with 10.0 - for instance for my 64 bit windows the file reads as follows:

其次,编辑适用于您的 Windows 位版本的注册表文件,再次将 9.0 替换为 10.0 - 例如对于我的 64 位 Windows,文件内容如下:

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\VisualStudio.0\Packages\{1B437D20-F8FE-11D2-A6AE-00104BCC7269}\Schemas\Schema 23]
"File"="html\html_5.xsd"
"Friendly Name"="HTML 5"
"URI"="http://schemas.microsoft.com/intellisense/html-5"

回答by retrodrone

回答by Fitzchak Yitzchaki

You can use this tool from Microsoft Gallery:

您可以使用 Microsoft Gallery 中的此工具:

HTML 5 Intellisense and validation schema for Visual Studio 2010 and 2008

Visual Studio 2010 和 2008 的 HTML 5 Intellisense 和验证架构

回答by adimauro

If anyone is having trouble getting the HTML 5 schema tool to work in Visual Studio 2010, take a look at this blog post I found which is a great help:

如果有人在让 HTML 5 架构工具在 Visual Studio 2010 中工作时遇到问题,请查看我发现的这篇博客文章,这很有帮助:

raihaniqbal.net - HTML5 Support In Visual Studio 2010

raihaniqbal.net - Visual Studio 2010 中的 HTML5 支持

回答by Virtual Labz

A simple answer is yes. Visual studio has been working on this from long time.

一个简单的答案是肯定的。Visual Studio 长期以来一直致力于此。

回答by blowdart

How can you support something that doesn't exist? Something you can't validate against because there's no accepted spec?

你怎么能支持不存在的东西?你无法验证的东西,因为没有公认的规范?

Yes they could build in support for the experimental DTD, but they did that with XML/XSLT/XPath and ended up fragmenting XML support for far too long and were attacked for it from all sides.

是的,他们可以建立对实验性 DTD 的支持,但是他们使用 XML/XSLT/XPath 做到了这一点,最终导致 XML 支持的碎片化时间太长,并因此受到来自各方的攻击。

Giving that people like Google are now pushing for tags they want just to make supporting Wave easier it's going to be a long time before HTML5 is done, and the "standard" is going to fluctuate and change - so why waste time and resources trying to hit a moving target?

考虑到像谷歌这样的人现在正在推动他们想要的标签只是为了让支持 Wave 更容易,HTML5 完成还需要很长时间,而且“标准”将会波动和变化 - 那么为什么要浪费时间和资源来尝试击中移动目标?

回答by user376574

" How can you support something that doesn't exist? Something you can't validate against because there's no accepted spec?

" 你怎么能支持不存在的东西?你不能验证的东西,因为没有公认的规范?

Yes they could build in support for the experimental DTD, but they did that with XML/XSLT/XPath and ended up fragmenting XML support for far too long and were attacked for it from all sides.

是的,他们可以建立对实验性 DTD 的支持,但是他们使用 XML/XSLT/XPath 做到了这一点,最终导致 XML 支持的碎片化时间太长,并因此受到来自各方的攻击。

Giving that people like Google are now pushing for tags they want just to make supporting Wave easier it's going to be a long time before HTML5 is done, and the "standard" is going to fluctuate and change - so why waste time and resources trying to hit a moving target? " link text

考虑到像谷歌这样的人现在正在推动他们想要的标签只是为了让支持 Wave 更容易,HTML5 完成还需要很长时间,而且“标准”将会波动和变化 - 那么为什么要浪费时间和资源来尝试击中移动目标?" 链接文字

Oh my god! Are you kidding me??? C++ was used by 1.5 million programmer worldwide before it was standardized. link textIn the mid-to-late 90's, 50%+ of all software development was done in C++ before it was standardized in 1998. Even when there was an ANSI C standard, very few compilers actually used that standard without countless ambiguous differences. And don't even get me start on how badly all the browsers have followed the HTML standards! In fact, still today no two browsers work exacly 100% the same because they still can't follow the HTML or CSS standards that exist now.

我的天啊!你在跟我开玩笑吗???C++ 在标准化之前被全球 150 万程序员使用。link text在 90 年代中后期,在 1998 年标准化之前,50% 以上的软件开发都是用 C++ 完成的。即使有 ANSI C 标准,也很少有编译器真正使用该标准而没有无数模糊的差异。甚至不要让我开始了解所有浏览器都遵循 HTML 标准有多糟糕!事实上,今天仍然没有两种浏览器完全 100% 相同,因为它们仍然无法遵循现在存在的 HTML 或 CSS 标准。