• Login
Community
  • Login

i need support to golang' language

Scheduled Pinned Locked Moved Blogs
4 Posts 3 Posters 5.0k 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.
  • T
    tutoriales honestos
    last edited by Sep 30, 2022, 1:39 PM

    hi!, i’m a historical user of notepad, and always see a new version i waiting for this include a golang support… Why still don’t have?

    A P 2 Replies Last reply Sep 30, 2022, 1:50 PM Reply Quote 0
    • A
      Alan Kilborn @tutoriales honestos
      last edited by Sep 30, 2022, 1:50 PM

      @tutoriales-honestos

      It’s an open ISSUE for Notepad++.

      1 Reply Last reply Reply Quote 0
      • P
        PeterJones @tutoriales honestos
        last edited by Sep 30, 2022, 3:00 PM

        @tutoriales-honestos ,

        The UDL Collection does have a golang UDL available: https://github.com/notepad-plus-plus/userDefinedLanguages/blob/master/UDLs/go_byAnthonyStarks.xml

        Download the raw XML into %AppData%\Notepad++\userDefineLangs\go_byAnthonyStarks.xml and restart Notepad++, and you will then have UDL-based syntax highlighting for golang on files whose extension are .go

        Enjoy.

        P 1 Reply Last reply Apr 4, 2024, 4:53 PM Reply Quote 2
        • P
          PeterJones @PeterJones
          last edited by PeterJones Apr 4, 2024, 4:55 PM Apr 4, 2024, 4:53 PM

          @tutoriales-honestos asked again here, and I have redirected followon conversation to this original Topic.

          The quick answer is still that you can use a UDL, as I said in 2022.

          However, I had forgotten about this discussion, so I had started researching an answer to the ask-again Topic, and discovered that the SciTE testbed-editor will open Go/Golang (*.go) files and internally use the C++ lexer (LexCPP.cpp). The cpp.properties includes definitions for Go. So it can handle it.

          I am going to point this out in the long-open ISSUE #8090 that Alan linked, because with that, there shouldn’t be much overhead to add it to Notepad++. So if anyone pays attention to my reply there, it might be that it’s much easier to add that language than was originally thought.

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