Inherits:
::tycho::EditProgram
-
Source File -
Contents:
public methods
- protected methods
- protected variable
This class defines a text widget with an emacs-like editor with some
context-specific features for editing Tcl files. Tcl is an
interpreted language developed by John Ousterhout of Berkeley. This
editor automatically indents a line in response to a Tab character,
and provides a command for indenting a region (the selection). To
enter a literal Tab, enter the sequence . This editor
also colors comments, procedure names, and the strings "FIXME" and
"NOTE", and provides a method for commenting out a region. It also
provides a command for evaluating a region of code.
Public constructs
-
evaluate
- Evaluate the contents of the text window as Tcl commands
in the global context. Display and return the result of the evaluation.
-
help
- Open a help window.
-
parseNow
start stop
- Invoke the base class parser to color comments and the strings
"NOTE" and "FIXME". Then tag and color procedure names.
-
tagLinks
- This method tags identifiers in the file that are defined elsewhere
and are registered for auto-loading in the global array "auto_index".
A binding is attached to the tag to perform a hyper jump to the file
given in the auto_index array, annotated with the name of the identifier.
Protected constructs
-
commentRegexp
- Return the regular expression used to identify line-oriented comments.
-
configureContextMenu
- Configure the popup menu according to context. For Tcl editors, this
looks for an html file and opens that if it finds one. In addition,
if there is a selection, it offer to evaluate it.
-
hypcount
0
- Counter for hyperlinks.
Index of classes
Author: Edward A. Lee
Version: @(#)EditTcl.itcl 1.21 11/14/96
Copyright: (c) 1995-1996 The Regents of the University of California.