Prima::Edit 1.20 review

Download
by rbytes.net on

Prima::Edit is a Perl module for standard text editing widget. SYNOPSIS use Prima::Edit; my $e = Prima::Edit->

License: Perl Artistic License
File size: 1389K
Developer: Dmitry Karasik
0 stars award from rbytes.net

Prima::Edit is a Perl module for standard text editing widget.

SYNOPSIS

use Prima::Edit;
my $e = Prima::Edit-> create(
text => 'Hello $world',
syntaxHilite => 1,
);
$e-> selection( 1, 1, 1, 2);

The class provides text editing capabilities, three types of selection, text wrapping, syntax highlighting, auto indenting, undo and redo function, search and replace methods.
The module declares bt:: package, that contains integer constants for selection block type, used by blockType property.

USAGE

The class addresses the text space by (X,Y)-coordinates, where X is character offset and Y is line number. The addressing can be 'physical' and 'logical', - in logical case Y is number of line of text. The difference can be observed if wordWrap property is set to 1, when a single text string can be shown as several sub-strings, called chunks.

The text is stored line-wise in {lines} array; to access it use get_line method. To access the text chunk-wise, use get_chunk method.

All keyboard events, except the character input and tab key handling, are processed by the accelerator table ( see Prima::Menu ). The default accelItems table defines names, keyboard combinations, and the corresponding actions to the class functions. The class does not provide functionality to change these mappings. To do so, consult "Prima::AccelTable" in Prima::Menu.

Requirements:
Perl

Prima::Edit 1.20 keywords