HTML 5 with Visual Studio 2010
July 1st, 2010 // 12:55 pm @ Amar
If you have tried to create / edit an HTML 5 document in Visual Studio, you must have got a lot of validation errors. The current validator in Visual Studio 2010 supports HTML 4.01 or XHTML 1.1 Transitional as the highest standards.
To enable Intellisense to work with HTML 5, perform the following steps:
- Download the HTML5 support package for Visual Studio 2008 from the Visual Web Developer team here.
- Copy the html_5.xsd in C:Program Files (x86)Microsoft Visual Studio 10.0Common7Packagesschemashtml
- Edit the correct registry file and replace 9.0 with 10.0
The file will look like this ( 64 bit VS 2010 Ultimate for me ): - Run the registry file to merge it with your registry.
- Open Visual Studio 2010
- Go to Tools->Options->Text Editor->HTML->Validation
- Select target as HTML 5
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINESOFTWAREWow6432NodeMicrosoftVisualStudio10.0Packages{1B437D20-F8FE-11D2-A6AE-00104BCC7269}SchemasSchema 23]
"File"="html\html_5.xsd"
"Friendly Name"="HTML 5"
"URI"="http://schemas.microsoft.com/intellisense/html-5"
This would allow you to get Intellisense for your HTML 5 based projects.
gary
1 year ago
very cool~!
Mohammad
1 year ago
Tanks and if possible tell me how to add CSS3 too.
MrME
1 year ago
NO MORE I LOVE YOU!
THANKS!
Nick
1 year ago
Thank you!! It helps a lot
Starting HTML5 Development with Visual Studio 2010 » Nithin Mohan T K's Weblog
1 month ago
[...] refereed from http://amargalla.com/Blog/general/169-html-5-with-visual-studio-2010 [...]
devendra
2 weeks ago
Nice 1..thanks