Regex highlight html
Gabriel Genellina
gagsl-py at yahoo.com.ar
Tue Feb 13 11:25:54 EST 2007
En Tue, 13 Feb 2007 10:13:26 -0300, NOSPAM plz <nospam at riddergarn.dk>
escribió:
> I want to write a function that highlights html code.
Well, it's already done, you have Pygments http://pygments.pocoo.org/
and SilverCity http://silvercity.sourceforge.net/
> I have read the wiki page
> http://en.wikipedia.org/wiki/Regular_expressions
Ouch... Read some previous posts on why it's not a good idea to use
regexps for parsing html code.
--
Gabriel Genellina
More information about the Python-list
mailing list