Prima::Edit

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

Prima::Edit Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Dmitry Karasik
  • Publisher web site:
  • http://search.cpan.org/~karasik/Prima-1.26/pod/Prima/Widget.pod

Prima::Edit Tags


Prima::Edit Description

Prima::Edit is a Perl module for standard text editing widget. 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.USAGEThe 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 Related Software