Message Boards Message Boards

Best way to create system` function templates without using codeassist?

Posted 2 years ago

I would like to create function templates without having to use the keyboard. That is by using code only. The usage.m file I have no idea how to parse into selectionboxes for each function. I find the keyboard interactive process is often unforgiving for us who don't type well. So am creating my own tool to insert function templates. And parsing the boxes used in usage definitions to get at f[x,y] from the definition text is beyond me. Yes, I have found some grep/pattern code that pulls out the f[x,y] template but breaks on edge cases (formatting errors in the boxes). And was hoping the WolframLanguageData scrubbed the usage for better parsing. I should be able to do something like this:

Infromation,Plot, "Usage",1,"Template","Plaintext"]

returning in plain text the first definition's template:

Plot[f,{x,y}]

"selectionboxes" something like this perhaps:

Plot[[\SelectionBox],{[\SelectionBox],[\SelectionBox]}]

I can no longer wait for WRI to make the visual "curb cuts"; I will make them. :-) Anybody interested in helping me with some much needed code?

Thanks for your consideration.

POSTED BY: Andrew Meit
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract