This class provides a text editor specialized for editing
Tcl source.
It is automatically invoked whenever you open a file with an
.tcl
extension.
Tcl is a scripting language developed by John Ousterhout at
U.C. Berkeley (now at Scriptics).
The EditTcl class is derived from the
EditProgram class, and
therefore inherits all of its features.
It colors certain Tcl constructs, such as comments
and procedure definitions.
One feature provided by this class is that the
Evaluate
command in the
File
menu
evaluated the Tcl code in the current (Tycho) Tcl editor.
If there is a selection, then the code in the selection is evaluated.
Otherwise, the entire file is evaluated.
The Evaluate Body
command in the File
menu will evaluate the Tcl
proc
that the insertion cursor is inside of. The
returned value is displayed.