Tk::DiffTextTk::DiffText is a Perl/Tk composite widget for colorized diffs. | |
Download |
Tk::DiffText Ranking & Summary
Advertisement
- License:
- Perl Artistic License
- Price:
- FREE
- Publisher Name:
- Michael J. Carman
- Publisher web site:
- http://search.cpan.org/~mjcarman/Tk-DiffText-0.17/lib/Tk/DiffText.pm
Tk::DiffText Tags
Tk::DiffText Description
Tk::DiffText is a Perl/Tk composite widget for colorized diffs. Tk::DiffText is a Perl/Tk composite widget for colorized diffs.SYNOPSIS use Tk::DiffText; my $w = $mw->DiffText()->pack(); $w->diff($file0, $file1);This module defines a composite widget that makes it simple to provide basic "diff" functionality to your Tk applications.OPTIONS-orient => 'horizontal'|'vertical'Controls the arrangement of the text panes. Defaults to vertical.-gutter => 0|1Hides and displays the line number gutter. Defaults to 1.-gutterforeground => colorSets the gutter foreground color.-gutterbackground => colorSets the gutter background color.-diffcolors => {...}Sets the colors used for highlighting diff results. The structure of the value hash is as follows: { add => , # tag for additions del => , # tag for deletions mod => , # tag for changes pad => , # tag for blank line padding }For each of the tags you can specify any option that is valid for use in a ROText widget tag: -foreground, -background, -overstrike, etc.-map => 'scaled'|'scrolled'|'none'Controls the display and type of difference map. Defaults to scaled.The difference map will match its colors to those from -diffcolors by default. It uses the background color if specified, otherwise it uses the foreground color. Requirements: · Perl
Tk::DiffText Related Software