Practical .NET

Switch Back to the Web Forms Editor for Static HTML

You lose some functionality with the default editor in Visual Studio 2013. Here's how to quickly switch back and get the functionality you were used to.

In Visual Studio 2013 the default editor for static HTML pages loses a lot of useful functionality compared to the default version used in Visual Studio 2012 and earlier.

In Figure 1, notice that XHTML violations such as uppercase tag names, unquoted attribute values, and attribute minimization are not shown as warnings. Also note the lack of a WYSIWYG experience option.

Default HTML Editing Experience in Visual Studio 2013
[Click on image for larger view.] Figure 1: Default HTML Editing Experience in Visual Studio 2013

To enable a better experience -- including the ability to automatically validate the mark-up, switch between validation schemas, and switch to a WYSIWYG design view -- follow these steps:

  1. In Solution Explorer, right-click any HTML file
  2. Choose Open With...
  3. Select HTML (Web Forms) Editor
  4. Click Set as Default
  5. Click OK

You'll notice in Figure 2, you get it all back.

The HTML Editing Experience Using the HTML (Web Forms) Editor
[Click on image for larger view.] Figure 1: The HTML Editing Experience Using the HTML (Web Forms) Editor

Now, that's more like it!

About the Author

Mark Price, MCT, MCSD, is a full-time trainer for UK-based Firebrand Training. He has more than 20 years of experience working in the IT and developer industry, including a two-year stint working at Microsoft. His expertise covers a number of Microsoft technologies (Azure, ASP.NET Web Forms and MVC, Web API, WCF, jQuery, C#, LINQ, Entity Framework, WPF, and Windows Store apps), HTML5, XAML, and Google developer technologies and the Google App Engine.

comments powered by Disqus

Featured

  • Full Stack Hands-On Development with .NET

    In the fast-paced realm of modern software development, proficiency across a full stack of technologies is not just beneficial, it's essential. Microsoft has an entire stack of open source development components in its .NET platform (formerly known as .NET Core) that can be used to build an end-to-end set of applications.

  • .NET-Centric Uno Platform Debuts 'Single Project' for 9 Targets

    "We've reduced the complexity of project files and eliminated the need for explicit NuGet package references, separate project libraries, or 'shared' projects."

  • Creating Reactive Applications in .NET

    In modern applications, data is being retrieved in asynchronous, real-time streams, as traditional pull requests where the clients asks for data from the server are becoming a thing of the past.

  • AI for GitHub Collaboration? Maybe Not So Much

    No doubt GitHub Copilot has been a boon for developers, but AI might not be the best tool for collaboration, according to developers weighing in on a recent social media post from the GitHub team.

  • Visual Studio 2022 Getting VS Code 'Command Palette' Equivalent

    As any Visual Studio Code user knows, the editor's command palette is a powerful tool for getting things done quickly, without having to navigate through menus and dialogs. Now, we learn how an equivalent is coming for Microsoft's flagship Visual Studio IDE, invoked by the same familiar Ctrl+Shift+P keyboard shortcut.

Subscribe on YouTube