in reply to Re: Tk text widget and strings
in thread Tk text widget and strings

Hi,
I don't think this code does what I need. Moreover I'm
not sure what this code is actually supposed to do.

On running the code, all I get is a Tk text widget, where
there is all the functionality that comes standard with any
Tk text widget, type text, copy/cut, paste, find, basic text editing stuff.

If you type the words print or sprintf their font colour
changes to red.In case of these words:if elsif else my our
use sub , the font colour changes to blue, and for a #,it's orange.
:) perl_seeker

Replies are listed 'Best First'.
Re: Re: Re: Tk text widget and strings
by zentara (Cardinal) on Mar 18, 2004 at 15:28 UTC
    Well from what I gathered from your original post, you were looking for a way to search text files, and have the results colored, and the color definitions in a separate file or variable. So the example I gave you shows how to color words, based on a hash of definitions, using Tags.

    This isn't a script writing service. You've showed no code of your own, so how are we to guess at what you want?

    It sounds like a useful thing to have, and I'm going to look into it for one of my projects. You'll have to wait, unless you want to pay me. :-)

    I suggest further googling, this has had to be done somewhere already.


    I'm not really a human, but I play one on earth. flash japh