I've got an interest in extending the HTML editor in Visual Studio 2012 to support some additional elements and attributes, beyond those supplied as part of the HTML5 specification.
For example:
<html>
<body>
<h1>Header Text</h1>
<mycustomelement>some info</mycustomelement>
</body>
</html>
I saw Mads Kristensen's excellent post, Custom schemas in VS2012 CSS editor, that shows how to do something similar for CSS in a very simple manner by implementing ICssSchemaFileProvider
.
From my research, there doesn't seem to be a simple way of doing this for HTML. Implementing an editor classifier seems to be the way to handle custom IntelliSense, and it's fairly daunting vs the CSS provider that Mads implements.
I really just want to throw an XML schema into the classifier and have it complete HTML5 and my custom additions.
Is there a simple implementation of an editor classifier or some alternative approach?