How to do syntax highlighting in a python-qt application ?
I have done a little app (TeXamator) that can (but it's not its first goal) edit some TeX code. It is written in Python with the PyQt4 library. I would like to highlight the TeX code but I'm not sure how to do this. My first thoughts were to use the code of, say, kate, or any other text editor that supports TeX (like kwrite, gedit, kile, you name it). After a bit of looking around, I couldn't find what I was looking for.
Do you know where those codes are hidden ? If not, would you know how to easily implement it ?