Prima::Edit 1.20
Prima::Edit is a Perl module for standard text editing widget. SYNOPSIS use Prima::Edit; my $e = Prima::Edit->
|
|||||||||||||||||||
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:
tags
Download Prima::Edit 1.20
Authors software
|
|
|
|
|
|
|
|
|
|
Similar software
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Other software in this category
|
|
|
|
|
|
|
|
|
|
Featured Software
jEdit 4.3 pre8
jEdit is an Open Source text editor written in Java
Opera 9.02
Surf the Internet in a safer, faster, and easier way with Opera browser
GNU Aspell 0.60.4
GNU Aspell is a Free and Open Source spell checker designed to eventually replace Ispell
- Communications
- Database
- Desktop Environment
- Games
- Internet
- Multimedia
- Office
- Programming
- Science and Engineering
- System
- Text Editing&Processing
