Community
    • Login

    Writing Kotlin in NP++

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    4 Posts 3 Posters 7.4k 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.
    • Jason Tilford 0J
      Jason Tilford 0
      last edited by

      I notice that NP++ doesn’t support the Kotlin language. Is there a way to add this in, or am I missing something? I am new to this language.

      Alan KilbornA Michael VincentM 2 Replies Last reply Reply Quote 0
      • Alan KilbornA
        Alan Kilborn @Jason Tilford 0
        last edited by Alan Kilborn

        @Jason-Tilford-0

        Lexing a language is not handled by Notepad++ itself, but by a dependent component called “Scintilla”.

        Until Scintilla supports Kotlin, Notepad++ can’t do anything about it.
        If Scintilla ever supports Kotlin, Notepad++ will get the benefits without much effort.

        There’s a Scintilla request to add support HERE.
        Well, it is kind of an “implied” request.

        Not sure if any Scintilla action has been taken on Kotlin support; maybe do some research yourself now that you have a little background?

        Jason Tilford 0J 1 Reply Last reply Reply Quote 2
        • Jason Tilford 0J
          Jason Tilford 0 @Alan Kilborn
          last edited by

          @Alan-Kilborn Thanks for the help!

          1 Reply Last reply Reply Quote 1
          • Michael VincentM
            Michael Vincent @Jason Tilford 0
            last edited by

            @Jason-Tilford-0 said in Writing Kotlin in NP++:

            support the Kotlin language

            Depends on the degree of “support” you want. If it’s just lexing (coloring), then as @Alan-Kilborn says it is Scintilla-related. But again, if it’s only lexing (coloring) you want, you can try a User Defined Language route and create your own Kotlin parser. Lucky for you, our esteemed function list / UDL guru @MAPJe71 has a Kotlin UDL parser you can try.

            Cheers.

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