Class ::tycho::EditC


Inherits: ::tycho::EditProgram - Source File - Contents: public methods
This class defines a text widget with an emacs-like editor with some context-specific features for editing C files. It 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 and the strings "FIXME" and "NOTE", and provides a method for commenting out a region.

Public constructs

Public Methods

commentSelection
Check to see whether the selection has any embedded comments. If it does, issue an error message. If it does not, then comment out the selection.
help
Open a window with help on the current widget.
parseNow start stop
Tag and color C-style comments in the text plus the strings "NOTE" and "FIXME". Note that if a comment begins in the specified range but ends outside the range, the entire comment is parsed.
spellCheckTags
Return a list of tags to use when checking the spelling.
uncommentSelection
Remove comment characters from the two ends of the selection. If the comment characters are by themselves on a line, remove the line altogether.

Index of classes



Author: Edward A. Lee
Version: @(#)EditC.itcl 1.10 11/12/96
Copyright: (c) 1995-1996 The Regents of the University of California.