Adding HTML 5 to the choice of target schemas in Visual Web Developer 2010 Express (VWD 2010 Express) is fairly straightforward, thanks to a download from Mikhail Arkhipov which can be found on the Visual Web Developer Team Blog at http://blogs.msdn.com/b/webdevtools/archive/2009/11/18/html-5-intellisense-and-validation-schema-for-visual-studio-2008-and-visual-web-developer.aspx.
This is where there is a slight variation in the instructions detailed in Mikhail Arkhipov 's post. To get VWD 2010 Express to recognise HTML 5 as an option for target validation, a change needs to be made to the necessary registry file.
If using VWD 2010 Express on a 64 bit machine, edit HTML-5-Schema-Reg-x64-VWD.reg. If using VWD 2010 Express on a 32 bit machine, edit HTML-5-Schema-Reg-x86-VWD.reg.
For HTML-5-Schema-Reg-x86-VWD.reg change the following from:
For HTML-5-Schema-Reg-x64-VWD.reg change the following from:
And that's it.
- Download the html5.zip at the end of the above post.
- Unzip the file.
- Copy the html_5.xsd file to "C:\Program Files\Microsoft Visual Studio 10.0\Common7\Packages\schemas\html". This is the default installation set up location. If VWD 2010 Express has been installed in another location, the file needs to be placed in the "Microsoft Visual Studio 10.0\Common7\Packages\schemas\html" folder.
This is where there is a slight variation in the instructions detailed in Mikhail Arkhipov 's post. To get VWD 2010 Express to recognise HTML 5 as an option for target validation, a change needs to be made to the necessary registry file.
If using VWD 2010 Express on a 64 bit machine, edit HTML-5-Schema-Reg-x64-VWD.reg. If using VWD 2010 Express on a 32 bit machine, edit HTML-5-Schema-Reg-x86-VWD.reg.
For HTML-5-Schema-Reg-x86-VWD.reg change the following from:
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VWDExpress\9.0\Packages\{1B437D20-F8FE-11D2-A6AE-00104BCC7269}\Schemas\Schema 23]to:
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VWDExpress\10.0\Packages\{1B437D20-F8FE-11D2-A6AE-00104BCC7269}\Schemas\Schema 23]
For HTML-5-Schema-Reg-x64-VWD.reg change the following from:
[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\VWDExpress\9.0\Packages\{1B437D20-F8FE-11D2-A6AE-00104BCC7269}\Schemas\Schema 23]to:
[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\VWDExpress\10.0\Packages\{1B437D20-F8FE-11D2-A6AE-00104BCC7269}\Schemas\Schema 23]
- Save the change.
- Run the reg file ( either HTML-5-Schema-Reg-x64-VWD.reg or HTML-5-Schema-Reg-x86-VWD.reg).
- Restart VWD 2010 Express.
- Select Tools from menu bar.
- Select Options.
- Select Validation in the left hand menu of the Options window.
- In the Target drop down, select HTML 5 which should now exist.
- Click OK.
And that's it.
When installing on a 64-bit system, I had to place the "html_5.xsd" file into the "Program Files (x86)..." location.
ReplyDeleteHi Moweber,
ReplyDeleteThanks for highlighting this when installing on 64-bit systems.
Hey,
ReplyDeleteI found this article when I was trying to install HTML5 intellisense in Visual Web Developer Express 2010. Thanks for the tip! Well spotted.
Alan.
No probs Alan. Glad this post was of some help. Thanks for the comment.
ReplyDelete