in reply to Re^2: selecting all occurences in tk::text
in thread selecting all occurences in tk::text

Hi,
use Tk; my $mw = tkinit; my $t = $mw->Text()->pack; $t->tagConfigure('foo', -background => 'yellow'); $t->insert('end',"foo\nbar\nbaz\nfoo\n"); $t->FindAll(qw/-exact -case foo/); $t->tagAdd('foo',$t->tagRanges('sel')); MainLoop;

See the tagRanges() and tagAdd() methods documented in Tk::Text

Cheers, Christoph
update: Added example