Auto completion for parameter/option
-
Hi,
Is there any way to auto complete parameter in option style? I’m using a user-defined language, the syntax is similiar to Tcl, so I use Tcl to illustrate, for example, a Tcl command:
return -code <code> -errorinfo <info> -errorcode <code>‘-code’, ‘-errorinfo’ and ‘-errorcode’ are options, kinda like paramter, what I want is after I type ‘return’, maybe followed by a space or other character like (, NP++ can present ‘-code’, ‘-errorinfo’ and ‘-errorcode’ that are selective in a list.
I tried to define the three options as keywords, which can make them selective, but that also make the three options same level as real function names, because function names are keywords too, and I only want the options to be listed after I type ‘return’.
Is this can be implemented by defining an xml file under APIs/? If not, is there any plugin to implement this or similar to what I want to implement, I can learn to write my own version.
Thanks
-
-
@Claudia-Frank
Could you please share any example .xml files?Thanks
-
@password636
There are bunch of them in the plugins\APIs directory. Check out rc.xml.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login