Tk-CodeText
view release on metacpan or search on metacpan
lib/Tk/CodeText.pm view on Meta::CPAN
package Tk::CodeText;
=head1 NAME
Tk::CodeText - Programmer's Swiss army knife Text widget.
=cut
use strict;
use warnings;
use vars qw($VERSION);
$VERSION = '0.68';
use base qw(Tk::Derived Tk::Frame);
use Tk::CodeText::Kamelon;
use Tk;
use Tie::Watch;
require Tk::CodeText::StatusBar;
require Tk::CodeText::TagsEditor;
require Tk::CodeText::Theme;
require Tk::DialogBox;
require Tk::Font;
require Tk::XText;
require Tk::YAMessage;
Construct Tk::Widget 'CodeText';
my @defaultattributes = (
'Alert' => [-background => '#DB7C47', -foreground => '#FFFFFF'],
'Annotation' => [-foreground => '#5A5A5A'],
'Attribute' => [-foreground => '#00B900', -weight => 'bold'],
'BaseN' => [-foreground => '#0000A9'],
'BuiltIn' => [-foreground => '#B500E6'],
'Char' => [-foreground => '#FF00FF'],
'Comment' => [foreground => '#5A5A5A', -slant => 'italic'],
'CommentVar' => [-foreground => '#5A5A5A', -slant => 'italic', -weight => 'bold'],
'Constant' => [-foreground => '#0000FF', -weight => 'bold'],
'ControlFlow' => [-foreground => '#0062AD'],
'DataType' => [-foreground => '#0080A8', -weight => 'bold'],
'DecVal' => [-foreground => '#9C4E2B'],
'Documentation' => [-foreground => '#7F5A41', -slant => 'italic'],
'Error' => [-background => '#FF0000', -foreground => '#FFFF00'],
'Extension' => [-foreground => '#9A53D1'],
'Float' => [-foreground => '#9C4E2B', -weight => 'bold'],
'Function' => [-foreground => '#008A00'],
'Import' => [-foreground => '#950000', -slate => 'italic'],
'Information' => [foreground => '#5A5A5A', -weight => 'bold'],
'Keyword' => [-weight => 'bold'],
'Normal' => [],
'Operator' => [-foreground => '#85530E'],
'Others' => [-foreground => '#FF6200'],
'Preprocessor' => [-slant => 'italic'],
'RegionMarker' => [-background => '#00CFFF'],
'SpecialChar' => [-foreground => '#9A53D1'],
'SpecialString' => [-foreground => '#FF4449'],
'String' => [-foreground => '#FF0000'],
'Variable' => [-foreground => '#0000FF', -weight => 'bold'],
'VerbatimString' => [-foreground => '#FF4449', -weight => 'bold'],
'Warning' => [-background => '#FFFF00', -foreground => '#FF0000'],
);
my $minusimg = '#define indicatorclose_width 11
#define indicatorclose_height 11
static unsigned char indicatorclose_bits[] = {
0xff, 0x07, 0x01, 0x04, 0x01, 0x04, 0x01, 0x04, 0x01, 0x04, 0xfd, 0x05,
0x01, 0x04, 0x01, 0x04, 0x01, 0x04, 0x01, 0x04, 0xff, 0x07 };
';
my $plusimg = '#define indicatoropen_width 11
#define indicatoropen_height 11
static unsigned char indicatoropen_bits[] = {
0xff, 0x07, 0x01, 0x04, 0x21, 0x04, 0x21, 0x04, 0x21, 0x04, 0xfd, 0x05,
( run in 0.428 second using v1.01-cache-2.11-cpan-71847e10f99 )