I've recently picked up on learning Python (because i have since been too lazy to continue my ventures in C/C++). As an exercise, i decided to create a small Notepad - like program using the Tkinter module (once i get Fedora set up on my new hard drive i'll probably try out the GTK wrapper). Well, then i figured i'd go the extra mile and add a syntax highlighter (you know, just to see if i could). Well, that's about where i've been for the past hour or two. I was wondering if any of you had any ideas on how to do syntax highlighting. As i said before, i'm using the Tkinter module (here's a quick reference on it:
http://www.pythonware.com/library/tkinter/introduction/). I'm guessing that i have to use tags (like text.tag_config("n", background="yellow", foreground="red")) but i'm not sure how to search for words and insert the tags. Any help is appreciated.