Will Visual Studio 2010 support HTML 5?

2019-01-21 11:23发布

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?

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.

Update From the Visual Web Develolper Team Blog:

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.

February 2011 Update from the Visual Web Developer Team Blog

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

May 2011 Update from Scott Guthrie's blog

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.

9条回答
聊天终结者
2楼-- · 2019-01-21 11:29

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

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

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, EDIT the 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 Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\VisualStudio\10.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"
查看更多
三岁会撩人
3楼-- · 2019-01-21 11:39
神经病院院长
5楼-- · 2019-01-21 11:40

I think real question is - will Microsoft support HTML5? Multiple places 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.

查看更多
够拽才男人
6楼-- · 2019-01-21 11:42

" 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.

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

Oh my god! Are you kidding me??? C++ was used by 1.5 million programmer worldwide before it was standardized. link text In 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.

查看更多
登录 后发表回答