Gremlin browser code editor
Hi, I'm looking for a code editor like monaco https://microsoft.github.io/monaco-editor/ to embed in my browser app that supports Gremlin (even very basic completion, etc.). Monaco doesn't have this out of the box and I was wondering if there is one out there?
Solution:Jump to solution
I can definitely chime in but the short answer is no - I'm actually planning to switch to Monaco in G.V(), best answer I can provide is that there are plenty guides available out there on how to integrate Monaco with an ANTLR grammar to provide both syntax error detection and editor suggestions (with the added use of antlr4-c3 on npm). A quick google search of monaco antlr4 should give you a step by step guide on all that.
That being said if you want a fully featured Gremlin query editor you're not gonna find anything better than G.V() wink wink...
4 Replies
@G.V() - Gremlin IDE (Arthur) any hints on this one?
Solution
I can definitely chime in but the short answer is no - I'm actually planning to switch to Monaco in G.V(), best answer I can provide is that there are plenty guides available out there on how to integrate Monaco with an ANTLR grammar to provide both syntax error detection and editor suggestions (with the added use of antlr4-c3 on npm). A quick google search of monaco antlr4 should give you a step by step guide on all that.
That being said if you want a fully featured Gremlin query editor you're not gonna find anything better than G.V() wink wink
The gremlin ANTLR grammar is under the gremlin-language repo in the official Apache Tinkerpop repository and it should be ready to use as is (it's great)
Thanks @G.V() - Gremlin IDE (Arthur) and @spmallette . That's along the lines of my finding but I hadn't come across the antlr grammar for gremlin until now so thanks for the suggestion.