TC Keywords

Apr 13, 2010
318
7
62
The Hague
For configuring syntax-coloring in my favorite editor I'm looking for a complete list of commands and functions. Does anyone have such a list readily available?

Thank you,
DJ
 
May 20, 2008
3,515
4
Elkridge, MD, USA
For either, you can copy and paste from the relevant "by Name" in HELP. The "?" command lists all internal commands, followed by all commands in currently loaded plugins; you can redirect the command. The FUNCTION command will report user-defined functions. Plugin commands and functions can be listed using PLUGIN /C and PLUGIN /F, resp.
--
HTH, Steve
 
Apr 13, 2010
318
7
62
The Hague
Thank you Steve. Yes, your reply does help somewhat because I had forgotten all about the "?" command :)

I realize that my question was too open. Sorry for that.

I am writing a script that produces some XML files to configure my favorite editor. Because TC is continuously evolving I would like to make this a repeatable process. While working on this little project I realized that other users must have had the same idea and need. I would think that JPSoft has such lists available somewhere and - more importantly - that it would be in a form that doesn't need (much) scraping, converting, filtering, stripping and reformatting. (Although I'm looking forward to trying the new command TPIPE for that!).

So, I guess I have two questions for the readers. (1) Is JPSoft willing and able to publish text files with the names of all commands, functions and variables for each version of TakeCommand? (2) Has anyone already written such a script, that filters command(groups), internal functions and variables from the TC documentation?

Such a script should produce discernible groups of keywords with no formatting. I would say flat text in separate files. Meanwhile, focusing on the functions and variables, I am open to (approach/design) suggestions as to how to make this a reliably repeatable process.

Cheers, DJ.
 
Aug 2, 2011
258
4
Berlin, Germany
DJ,

I just remember a thread of Rex where he mentioned a lexer for TCC.
Perhaps you can follow it up.
 
Apr 13, 2010
318
7
62
The Hague
Thanks Frank. My editor already has everything it needs for syntax-coloring, folding, etc except of course the specific "reserved words" for our particular language here.

My question is not about editors but about where to get or how to (re)generate compete lists of keywords so that some of us, who are (also) using other editors than TC's IDE, can quickly update their configurations with each new release of TakeCommand.

- DJ
 
Aug 2, 2011
258
4
Berlin, Germany
sorry, I thought you could perhaps extract some syntax-/keyword-informations,
because rex said
I have now posted the source code for the TCC Scintilla lexer to the Scintilla SourceForge project. It's available for anyone to use (plugins anyone?) in any application that is using Scintilla
 

rconn

Administrator
Staff member
May 14, 2008
12,556
167
The lexer only has a list of commands (the same as the ? command displays). It doesn't try to track the variable function or internal variable names; it just assumes that anything beginning with a %@ is a variable function and anything beginning with %_ is an internal variable.