Looking for Antlr Grammar syntaxt highlight in VS2010
Posted
by
David Mårtensson
on Stack Overflow
See other posts from Stack Overflow
or by David Mårtensson
Published on 2011-02-25T16:17:36Z
Indexed on
2011/02/26
7:25 UTC
Read the original article
Hit count: 500
I am looking for some way to edit antlr grammar files directly within VS2010 with syntax 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).
© Stack Overflow or respective owner