The XOTclIDE editor is based on a Tk Text widget. The following functions are available.
Key Accelerator Control-x
Key Accelerator Control-
Key Accelerator Control-
Key Accelerator Control- available only with Tcl8.4
To see other accelerators see the Tk Text Widget documentation. text widget manual.
Standard text find and replace dialogs are available in menu Component Browser -> (F4).
. To search for text in many methods use the menu in BrowserIt works like file name competition in bash (Unix Shell) or code completion in typed program language IDEs. The user can type the first character of token than press Tab or Control-Space. XOTclIDE tries to complete the token depending on its context. If many alternative completions are available a pop-down window list will be displayed.
The following language tokens can be completed
commands like: lappend list foreach
for example string length|match|range
all procedures known from info procs
all XOTcl Classes and Object in every namespace.
all methods (including methods derived from other classes) found by $instance info instprocs
variables defined per set append instvar foreach ... or method parameters. Just type $ and press the Tab key
The Method menu in the Component Browser offers some additional help functions for browsing XOTcl/Tcl methods. You can return to the last shown method by Functions “Back Method ( Alt-Left )” or “Forward Method ( Alt-Right )” just like from your HTML browser.
Spawn View opens a new editor window with the same contents as the current edit area.
XOTclIDE implements two kinds of syntax highlighting:
is based on regular expression patterns. It highlights only "", substitution and # comments.
This syntax highlighting gives a truer result. It highlights Tcl core-commands, variables, comments, "", substitution and XOTcl key-words.
Finding opening or closing parentheses can be hard work in understanding some Tcl methods. Double-click on [{" or ]}" and XOTclIDE will find the corresponding opening or closing parenthesis for you and select it.
XOTclIDE tries to set the same indent in a newly inserted line as in the last line. If the last character before a new line is an opening parenthesis { then in the new line the indenting will be increased by four and a matching closing parenthesis will be inserted.
foreach a $list {here cursor
After a new line you will see this code
foreach a $list { here cursor }
This is a very powerful function. It lets you evaluate Tcl scripts as in the Tclshell console but is more flexible. Simply select a string and evaluate it with the pop-down menu or key-accelerator. Now you will notice that in Tcl everything is a string. It is also the easiest and fastest way to program in XOTcl/Tcl.
The Menu “Print it” corresponds to the Tcl eval command. You can also use Control-q.
Menu “Substitute it” corresponds to the subst Tcl command.
Menu “Inspect it” evaluates the selected text and launches an inspector on the returned value if it is a XOTcl object. You can also use Control-g. If the result of the last operation is an XOTcl Object then it will be displayed in an Object inspector.
You can use Workspaces (see menu
-> ) to evaluate short Tcl scripts.