Tk::XText - Extended Text widget
require Tk::XText; my $text= $window->XText(@options)->pack;
Tk::XText inherits Tk::Text. It adds an advanced Undo/Redo stack, facilities for indenting and unindenting, commenting and uncommenting and autoindendation.
It's main purpose is to serve as the text widget in the Tk::CodeText mega widget.
The options and methods below are only documented if they are not available within the Tk::CodeText context. Otherwise see there.
.
The end string of a multi line comment.
The start string of a multi line comment.
This callback is called every time text is modified. used in Tk::Codetext for adjusting line numbers and triggering syntax highlighting/code folding.
The start string of a single line comment.
Besides the events of l<Tk::Text>, this module responds to the following events and bindings:
Event: Key: <<Find>> F8 <<Replace>> F9 <<Indent>> CONTROL+J <<UnIndent>> CONTROL+SHIFT+J or CONTROL+TAB <<Comment>> CONTROL+G <<UnComment>> CONTROL+SHIFT+G <<Undo>> CONTROL+Z <<Redo>> CONTROL+SHIFT+Z
Further more, CONTROL+A selects all text.
Unknown. If you find any, please contact the author.
To install Tk::CodeText, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Tk::CodeText
CPAN shell
perl -MCPAN -e shell install Tk::CodeText
For more information on module installation, please visit the detailed CPAN module installation guide.