ANN: PySourceColor 1.7

Michele Simionato michele.simionato at gmail.com
Fri Oct 15 03:19:32 EDT 2004


mefjr75 at hotmail.com (M.E.Farmer) wrote in message news:<18282ecb.0410141705.4fb6de25 at posting.google.com>...
> Hello all,
>     This version of PySourceColor supports decorators.
> It looks like the syntax is there for a while, so I decided add them
> in.
> They parser code has also been extended to seperate all 12 types of
> string.
> I rewrote the _Null colorscheme to actually be null format.
> Changed the old _Null to _Mono a black and white colorscheme for
> printing.
> Also added a few utility functions.
> If you don't like the builtin colorschemes you should be able to write
> a colorscheme that looks exactly like you want.
> This is something that would be nice to have built into pydoc.
> The links at the top-right of a pydoc page could point to a colorized
> source and a plain text version :)
> This program should run with Python 2.0 -> 2.4.
> The code can be any version.
> Just save to a file and run it.
> It will parse itself into 6 diffrent webpages and show them.

Hey, this is pretty cool!
However the long lines where cut in the posted message and I had to fix
them by hand (those are the rare situations where I would lke Python was 
not an indentation-sensitive language :-(). I also replaced "MyDir"
with "tmp" which looks as a sensible default, at least on Unices.
Good work,

            Michele Simionato



More information about the Python-list mailing list