Hello,
I am creating a .NET metaprogramming library and would like to be able to write C# inside C# string. I believe your extension's source code has whatever it is I need for my extension too.
What I want to have is the core editor support for actual code in some specific string. For example in Attributes.
[SomeAttribute(" C# with Intellisense & highlighting ")]
Note: That embedded code should be treated as a string by CLR, and my other extension will preprocess these .cs files and do something useful.
The way embedding is done, I believe, is by using the projection buffers. Razor does embedding of C# into HTML (or reverese?) by projecting, and maybe your tool does too? Embeds HTML into PHP by projecting?
I have tried using IProjectionBuffer interface and IVsTextBufferCoordinator interface, but to no avail. Maybe I haven't tried them well.
Is there any way you could help me by pointing me in the right direction?
- Have you used the
IVsEditorFactory?
- Is your extension using the built in HTML language service?
- How have you built your projections?
Thank you for your time.