Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

What is a reliable module for high-lighting , change text size or bolding text in a word doc, word pad or notepad? thank you

Replies are listed 'Best First'.
Re: text highlight or modification.
by locked_user sundialsvc4 (Abbot) on Nov 11, 2010 at 05:14 UTC

    I think that it can be very-safely said that t-h-e way to accomplish all such magickal spells, within the Microsoft Windows® environment, is OLE.   It is possible to instantiate an instance of, say, a Word.Document, and thence to reference particular segments of the same, and to do various things with them, all within a very consistent and well-thought out framework.

    “It’s very slick.   Quite a Very Good Hack,™ although I freely admit that I never imagined that I would ever say such a thing about anyone-at-all from Redmond, Washington ...   Yes, it is Very Good.”

Re: text highlight or modification.
by Anonymous Monk on Nov 11, 2010 at 04:05 UTC
    If its possible for the many different versions of MSWord/wordpad/notepad to have a reliable way of accomplishing what you're after, you would use Win32::OLE/Win32::GuiTest.