in reply to How do I apply formatting to a particular word in a docx file using Win32::Ole in Perl?
Something like this (Untested, uncompiled):
for my $w ($paragraph->{Range}->Words()){ next unless $w->Text() =~/perl/i; $w->Font->{Bold} = 1; }
Syntactic sugar causes cancer of the semicolon. --Alan Perlis
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: How do I apply formatting to a particular word in a docx file using Win32::Ole in Perl?
by ZJ.Mike.2009 (Scribe) on Sep 23, 2010 at 06:10 UTC |