Is it possible to include a comment in command codes?

I would like to have a few comments/keywords in some of my commands for the toolbarpalette.

If you're talking about this ToolbarPalette, the last version excludes all the commented lines, because they don't serve any purpose in the command's context (which is precisely run stuff).
Maybe you can use the Description field for that.

That's what i tried already, but that functionality isn't included yet. I would use it for buttons, which i use rarely and had to look them up frequently. Therefore i'd like to add some keywords. I also thought about misusing some of the @-modifiers, placing some nonsense code (= the keywords), where i suppose, it wouldn't do or break anything.

The ToolbarPalette works perfectly aside from that.

Button code can have comments on lines starting with //.

(What ToolbarPalette does with them is up to it.)

1 Like

Maybe an option in the script config to let the user decide, if they want to exclude those lines or not.
It seems that most users are using it for searching rather than for run actual commands.

1 Like

I tried // now, doesn't work. The keyword isn't found.

Indexing the description field sounds like a good idea.

It works to put a comment in the code.

Yes, it does. But that is not what i meant. See here:


This was already answered above:

In that case, i would like to use the older version. I need to include some kind of 'tag cloud' as a description, because in many cases i can't even remember the names of the function i'm searching for (only what they do), and the codes aren't too verbose either. Is the older version still around here? I couldn't find it.

If a post has been updated you can view earlier versions of it, and download any files they contain, by clicking this icon at the top-right of the post.

The top right of that page is my own avatar. Or 'close this banner'. Or the edit pencil for errante's post. Sorry, i'm stuck here.

Keep looking.

1 Like

Ok, got it now. Thanks!