I was trying to play around with HTML5 assuming that VS had the shipped with HTML5 support but to my dismay it is not th E case. bummer! So I do a bit of homework and came up with an easy workaround. If you try googling for HTML5 Visual Studio, the first link this you'll see are HTML 5 Intellisense for visual Studio and 2008. But unfortunately, the patch provided over there doesn ' t seem to work. (Do I has to do everything!!)
So here's how I got it to work.
- Download This archive and extract the contents to your desktop.
- Copy/move html_5.xsd to D:\Program Files (x86) \microsoft Visual Studio 10.0\common7\packages\schemas\html. The path may vary depending in where you installed VS or Visual Web Developer 2010.
- From the extracted contents, run the appropriate registry file. In my case, it was Vs-2010-x64.reg
- Now fire up Visual Studio (or VWD) and navigate to Tools > Options > Text Editor HTML > Validation. The right panel, select HTML 5 as the Target.
- Now restart VS should and you are able to code valid HTML5. enjoy!
HTML5 support in Visual Studio 2010