User's Guide to the Tcl Editor

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 Sun Microsystems). 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.

A unique feature of this editor is its ability to create hyperlinks to procedure definitions. This feature is invoked by the "Show Links" command in the "Format" menu. Upon invoking this command, any procedure that is registered in the current (Tycho) Tcl process for auto-loading will be colored and underlined, and will become a hyperlink to its definition in the source code. Internally, the Tcl process uses a global array "auto_index" for registering procedures that can be auto loaded.

Another 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 returned value is displayed.

Tycho Home Page


Copyright © 1996, The Regents of the University of California. All rights reserved.
Last updated: 96/11/05, comments to: eal@eecs.berkeley.edu