NAME
Tk::XText - Extended Text widget
SYNOPSIS
require Tk::XText;
my $text= $window->XText(@options)->pack;
DESCRIPTION
Tk::XText inherits Tk::Text. It adds an advanced Undo/Redo stack, facilities for indenting and unindenting, commenting and uncommenting, autocomplete and autoindent, loading, saving and exporting.
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.
OPTIONS
- Name: acPopSize
 - Class: AcPopSize
 - Switch: -acpopsize
 - 
.
 - Name: acScanSize
 - Class: AcScanSize
 - Switch: -acscansize
 - 
.
 - Name: activeDelay
 - Class: ActiveDelay
 - Switch: -activedelay
 - 
.
 - Name: autoBrackets
 - Class: AutoBrackets
 - Switch: -autobrackets
 - 
.
 - Name: autoComplete
 - Class: AutoComplete
 - Switch: -autocomplete
 - 
.
 - Name: autoIndent
 - Class: AutoIndent
 - Switch: -autoindent
 - 
.
 - 
.
 - Switch: -escapepressed
 - 
Callback. Called when the user presses the escape key.
 - Switch: -findoptions
 - 
.
 - Switch: -findandreplacecall
 - 
.
 - Name: indentStyle
 - Class: IndentStyle
 - Switch: -indentstyle
 - 
.
 - Switch: -keyreleasecall
 - 
Callback. Called when the user releases a key. Gets the Ev(A) value of the event as parameter.
 - Switch: -logcall
 - 
.
 - Name: match
 - Class: Match
 - Switch: -match
 - 
.
 - 
.
 - Switch: -matchoptions
 - 
.
 - Switch: -mlcommentend
 - 
The end string of a multi line comment.
 - Switch: -mlcommentstart
 - 
The start string of a multi line comment.
 - Switch: -modifycall
 - 
This callback is called every time text is modified. used in Tk::Codetext for adjusting line numbers and triggering syntax highlighting/code folding.
 - Switch: -readonly
 - 
.
 - Switch: -slcomment
 - 
The start string of a single line comment.
 
EVENTS AND KEYBINDINGS
Besides the events of l<Tk::Text>, this module responds to the following events and key bindings:
Event:         Key:
<<Find>>       CONTROL+F
<<Replace>>    CONTROL+R
<<Indent>>     CONTROL+J
<<UnIndent>>   CONTROL+SHIFT+J or CONTROL+TAB
<<Comment>>    CONTROL+G
<<UnComment>>  CONTROL+SHIFT+G
<<Undo>>       CONTROL+Z
<<Redo>>       CONTROL+SHIFT+Z
<<UpperCase>>  CONTROL+I
<<LowerCase>>  CONTROL+SHIFT+I
Further more, CONTROL+A selects all text.
METHODS
- canUndo
 - canRedo
 - clear
 - comment
 - getFontInfo
 - goTo
 - indent
 - linenumber
 - load
 - log
 - redo
 - replace$begin, $end, $string)
 - save
 - saveExport($file)
 - selectionExists
 - uncomment
 - undo
 - unindent
 - visualBegin
 - visualEnd
 
AUTHOR
BUGS
Unknown. If you find any, please contact the author.