Community
    • Login

    GraphQL schema syntax highlighting plug-in needed...

    Scheduled Pinned Locked Moved Notepad++ & Plugin Development
    3 Posts 3 Posters 481 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Eric SchetselaarE
      Eric Schetselaar
      last edited by

      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

      Mark OlsonM Lycan ThropeL 2 Replies Last reply Reply Quote 0
      • Mark OlsonM
        Mark Olson @Eric Schetselaar
        last edited by Mark Olson

        @Eric-Schetselaar

        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.

        1 Reply Last reply Reply Quote 1
        • Lycan ThropeL
          Lycan Thrope @Eric Schetselaar
          last edited by Lycan Thrope

          @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. :-)

          1 Reply Last reply Reply Quote 1
          • First post
            Last post
          The Community of users of the Notepad++ text editor.
          Powered by NodeBB | Contributors