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

  • Compare New GitHub Copilot Free Plan for Visual Studio/VS Code to Paid Plans

    The free plan restricts the number of completions, chat requests and access to AI models, being suitable for occasional users and small projects.

  • Diving Deep into .NET MAUI

    Ever since someone figured out that fiddling bits results in source code, developers have sought one codebase for all types of apps on all platforms, with Microsoft's latest attempt to further that effort being .NET MAUI.

  • Copilot AI Boosts Abound in New VS Code v1.96

    Microsoft improved on its new "Copilot Edit" functionality in the latest release of Visual Studio Code, v1.96, its open-source based code editor that has become the most popular in the world according to many surveys.

  • AdaBoost Regression Using C#

    Dr. James McCaffrey from Microsoft Research presents a complete end-to-end demonstration of the AdaBoost.R2 algorithm for regression problems (where the goal is to predict a single numeric value). The implementation follows the original source research paper closely, so you can use it as a guide for customization for specific scenarios.

  • Versioning and Documenting ASP.NET Core Services

    Building an API with ASP.NET Core is only half the job. If your API is going to live more than one release cycle, you're going to need to version it. If you have other people building clients for it, you're going to need to document it.

Subscribe on YouTube