GraphQL schema syntax highlighting plug-in needed...
-
Hi!
Does anyone know where I can find a plug-in to help me with formatting (syntax highlighting, prompting, etc.) a GraphQL query? It would be so helpful to have one.Thanks!
/Eric -
Realistically Notepad++ will not provide anything for working with GraphQL that you couldn’t get a better version of in some other text editor. I have no idea; I don’t use GraphQL, but I’ve at least heard of it.
Technically you could use the UDL system to highlight GraphQL, but UDL’s are incredibly jank and the EnhanceAnyLexer plugin only really provides a band-aid on that jankiness. The chances of getting a proper lexer for GraphQL added to the Lexilla library (like the lexers for Python, C++, and other more established languages) is essentially nonexistent.
Finally, there’s NppLspClient, which you could potentially connect to a language server for GraphQL, but this all seems like more work than just editing GraphQL in VSCode or whatever.
-
@Eric-Schetselaar ,
Like @Mark-Olson says, at least for Syntax Highlighting, the UDL is about your best bet if any, and that probably means you’d have to create your own. (fun!!) Not sure what prompting means in this usage.Unlike @Mark-Olson , I hadn’t heard about this language, but the quick view I had, looks like the UDL could handle it. It’s got essentially a Class/Function style that is similar to most OOP language implementations.
If by prompting, you mean Autocompletion or FunctionList capability, that’s even more work, but doable, since the language looks like most others, it just needs to be structured into a Notepad++ UDL structure system…but as @Mark-Olson suggests, there might already be capable editors for that specialization already, since it’s under the Meta banner, they could provide it. If you’re simply looking for an alternative, then roll up your sleeves and get to work. :-)