Hi,
I am considering creation of an SDK Package (C#, VS 2008) that would enable syntax coloring and Intellisense for a custom language as a contained language in an HTML editor. Long story short, in the end it would be something like a .cshtml editor for ASP .NET MVC Razor but with a totally different templating language.
My question is how to tell Visual Studio which start and end tags (or are they rather tokens?) mark code blocks with the contained language? In other words, there should be a way to let Visual Studio editor know that, for example
<script>...</script>
designates a code block with a piece of JavaScript (or VBScript), and
<% ... %>
designates a piece of server-side C# code.
The MSDN documentation on IVsContainedLanguage does not seem to provide any details on this, and neither does the documentation on IVsTextBufferCoordinator.
Am I looking at a wrong place? I consider myself to be quite good at googling things but this time I have not been able to find anything useful :(