How to write a Visual Studio extension for a template or markup language that supports embedded code snippets

后端 未结 2 1441
野趣味
野趣味 2021-01-04 04:45

Is it possible to write an extension for Visual Studio 2010 that provides syntax highlighting, intellisense, outlining, etc for a custom template or markup language

相关标签:
2条回答
  • 2021-01-04 04:59

    you can write your own editor extension, see this article : http://www.devx.com/VS_2010/Article/45058

    And to understand how it works : http://msdn.microsoft.com/en-us/library/dd885240(v=VS.100).aspx

    Do research about "Managed Extensibility Framework (MEF) "

    You can download an exemple for the Ook langage here

    0 讨论(0)
  • 2021-01-04 05:00

    You should take a look at https://github.com/SparkViewEngine/SparkSense as an example. It was built for the spark view engine to provide intellisense for VS 2010.

    "SparkSense is a plugin for Visual Studio 2010 that enables various tooling support and productivity features when using Spark as a View Engine for various MVC frameworks including ASP.NET MVC"

    0 讨论(0)
提交回复
热议问题