开发者

Looking for Antlr Grammar syntaxt highlight in VS2010

I am looking for some way to edit antlr grammar files directly within VS2010 with s开发者_JS百科yntax highlight.

I have used antlrworks a lot but it has the drawback that I have to start antlrworks separately and then browse to the file I want to edit, do the changed and save. For minor fixes I do not need all the tools in Antlrworks but I still would like the syntax highlight.

But I have not been able to get VS2010 to open antlrworks with the right file and I have found no other way to get syntax highlight directly within VS2010 editor, it just opens as plain text.

I can get visual studio to open antlrworks but it will open with only the last set of files it had open, not the one I clicked on.

So my question(s) are:

Is there a way to get antlrworks to open with the right file when I double click in it in visual studio project explorer?

Is there any other way to get correct syntax highlight for antlr grammar files within visual studio (or with another editor, preferably not one that costs money, but if there are no free ones a commercial one might be an option).


You could try the Tunnel Vision Labs extension. This can be found in Microsoft Gallery


You can provide a custom parser class that Visual Studio uses to highlight ANTLR grammar files.

See: Syntax Colorizing (Managed Package Framework)

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜