Scroll to navigation

CodeText::Perl(3pm) User Contributed Perl Documentation CodeText::Perl(3pm)

NAME

Tk::CodeText::Perl - a Plugin for Perl syntax highlighting

SYNOPSIS

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.

METHODS

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.

AUTHOR

Hans Jeuken (haje@toneel.demon.nl)

BUGS

Propably plenty

2023-01-03 perl v5.36.0