Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.6 / 3....
  • Linux Kernel 3.0.82 LTS...
  • KDE Software Compilatio...
  • PulseAudio 4.0
  • Wireshark 1.10.0
  • NetworkManager 0.9.8.2
  • LibreOffice 3.6.6 / 4.0...
  • SystemRescueCd 3.7.0
  • Linux Kernel 3.10 RC6
  • Ubuntu Tweak 0.8.5
  • Home > Linux > Programming > Perl Modules

    Tk::TextHighlight 1.0.4

    Download button

    No screenshots available
    Downloads: 425  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    Good (3.0/5)
    14 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Jim Turner | More programs
    Perl Artistic License / FREE
    May 8th, 2008, 23:51 GMT
    ROOT / Programming / Perl Modules

     Read user reviews (0)  Refer to a friend  Subscribe

    Tk::TextHighlight description

    Tk::TextHighlight is a TextUndo widget with syntax highlighting capabilities.

    Tk::TextHighlight is a TextUndo widget with syntax highlighting capabilities.

    SYNOPSIS

    use Tk;
    my $haveKateInstalled = 0;
    eval "use Syntax::Highlight::Engine::Kate; $haveKateInstalled = 1; 1";

    require Tk::TextHighlight;

    my $m = new MainWindow;

    my $e = $m->Scrolled("TextHighlight",
    -syntax => "Perl",
    -scrollbars => "se",
    )->pack(-expand => 1, -fill => "both");

    if ($haveKateInstalled) {
    my ($sections, $kateExtensions) = $e->fetchKateInfo;
    $e->addKate2ViewMenu($sections);
    }
    $m->configure(-menu => $e->menu);
    $m->MainLoop;

    Tk::TextHighlight inherits Tk::TextUndo and all its options and methods. Besides syntax highlighting, methods are provided for commenting and uncommenting as well as indenting and unindenting a selected area, matching pairs of braces, brackets and brackets and curlies and automatic indenting of new lines.

    If you want your widget to be read-only, then require Tk::ROTextHighlight, which is based on Tk::ROText instead of Tk::TextUndo.

    Syntax highlighting is done through a plugin approach. Adding languages is a matter of writing plugin modules. Theoretically this is not limited to programming languages. The plugin approach could also provide the possibility for grammar or spell checking in spoken languages.

    Product's homepage

    Requirements:

    · Perl

      


    TAGS:

    TextUndo widget | syntax highlighting | Perl module | TextUndo | widget | syntax

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM