From Code to Community: Sponsoring The Perl and Raku Conference 2025 Learn more

Tk-CodeText

Tk::Text widget with syntax highlighting and code folding

Tk::CodeText aims to be a Scintilla like text widget for Perl/Tk.

This is a rewrite, almost from scratch and not backwards compatible with version 0.3.4 and earlier.

It uses Syntax::Kamelon for syntax highlighting, code folding and syntax sensitive commenting.

Features:

Requirements

Following Perl modules should be installed:

Installation

perl Makefile.PL
make
make test
make install

Sample program codetext

This package comes with a sample script codetext. You can invoke it from the command line after install.

Before install you can do: perl -Mblib bin/codetext

For command line options type: codetext -help