Quantcast
Channel: Visual Studio Integrate forum
Viewing all articles
Browse latest Browse all 4410

How to create an editor with a projection buffer?

$
0
0
I'd like to create an editor to a custom view engine, which hosts C# code around some barriers (let's say <source></source>). In VS2008 this was done by the TextBufferCoordinator, secondary buffers and contained languages. First I tried to convert the project to VS2010 without luck, so I went to see the new Editor APIs. It seems one has to create a IProjectionBuffer, and use spans to link between the codes. But how can you tell the editor to use a ProjectionBuffer? What is the easiest way to convert code that was written using the old ContainedLanguages based API to the new Projection based Editor API?

Viewing all articles
Browse latest Browse all 4410

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>