Tk::CodeText::Perl - a Plugin for Perl syntax highlighting
Tk::CodeText::Perl inherits Syntax::Highlight::Perl;
For its limitations see also there. This module provides extra methods to provide syntax highlighting for the Perl programming language.
returns a list of string snippets and tags that can be inserted in a Tk::Text like widget instantly.
sets and returns a reference to a list of tagnames and options. By default it is set to:
[ ['Comment_Normal', -foreground => 'lightblue'], ['Comment_Pod', -foreground => 'lightblue'], ['Directive', -foreground => 'black'], ['Label', -foreground => 'black'], ['Quote', -foreground => 'red'], ['String', -foreground => 'red'], ['Variable_Scalar', -foreground => 'blue'], ['Variable_Array', -foreground => 'blue'], ['Variable_Hash', -foreground => 'blue'], ['Subroutine', -foreground => 'orange'], ['Character', -foreground => 'magenta'], ['Keyword', -foreground => 'darkgreen'], ['Builtin_Operator', -foreground => 'darkgreen'], ['Operator', -foreground => 'brown'], ['Number', -foreground => 'darkblue'], ]
Used internally. Don't call it yourself.
Compares @state to the current state of the formatter. returns true when equal.
Returns a list of the current state of the formatter. Called by the highlighting routines in Tk::CodeText.
Sets the state of the formatter. Called by the highlighting routines in Tk::CodeText.
Hans Jeuken (haje@toneel.demon.nl)
Propably plenty
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.