GoLang suggestion hint help
-
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.
-
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 -
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 beautoCompletion\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.
-
Thank you!, I will look into it and report back once I managed to get something to work.