I have a domain-specific language with a certain syntax. Is it possible to make Visual Studio 2008 recognize custom languages in the usual editors? That is, associate a given file extension to a certain syntax-coloring scheme? If so, would you have any pointers as to how to do this?
I’m sorry if this is a duplicate. I searched but couldn’t find a relevant answer, and yet it does sound like a simple question.
Regards.
If the Implementing Color Syntax Highlighting in Visual Studio 2008 seems like the deep end, you can download the Lua Lang Pack http://luaforge.net/projects/lualangpack/ and see how they do it.
They use the Compiler Tools in C# which are quite neat.
Failing that you can download my prototype Erlang VS plugin that currently only has simple syntax highlighting, but is based on all the above.