Community
    • Login

    GoLang suggestion hint help

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    4 Posts 2 Posters 352 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.
    • ImmusamaI
      Immusama
      last edited by Immusama

      I did some research but I’m completely lost on how to add a custom library and hint suggestions for GoLang.
      I already made a working syntax highlighter (UDL) but I was wondering if there is an effective way to make custom functions work/auto suggested.

      Example I start typing .abc <- and it suggests me a predefined catalogue I setup somewhere.

      PeterJonesP 2 Replies Last reply Reply Quote 0
      • PeterJonesP
        PeterJones @Immusama
        last edited by PeterJones

        @immusama ,

        The FunctionList feature allows you to add auto-complete text for any language, UDL or built-in. The forum’s FAQ section has instructions on building FunctionList definition files, and there have been other discussions if you search the forum for FunctionList

        1 Reply Last reply Reply Quote 0
        • PeterJonesP
          PeterJones @Immusama
          last edited by PeterJones

          @immusama ,

          Sorry, I don’t know what I was thinking earlier this morning. It’s not FunctionList, it’s the AutoCompletion feature, of course. That is documented here. As that section of the manual says, if you want to define the autocompletion for a User Defined Language (UDL), you need to give the autoCompletion___.xml file a filename that matches your UDL name; for example, if your UDL is called GoLang, then your file would be autoCompletion\GoLang.xml

          Also, note that your example included punctuation: it will sometimes work for the keyword autocompletion, but if you want parameter autocompletion, punctuation will confuse things.

          ImmusamaI 1 Reply Last reply Reply Quote 2
          • ImmusamaI
            Immusama @PeterJones
            last edited by

            @peterjones

            Thank you!, I will look into it and report back once I managed to get something to work.

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