Package PortalTransforms :: Package transforms :: Module python
[show private | hide private]
[frames | no frames]

Module PortalTransforms.transforms.python

Original code from active state recipe
        'Colorize Python source using the built-in tokenizer'

----------------------------------------------------------------------------
     MoinMoin - Python Source Parser

 This code is part of MoinMoin (http://moin.sourceforge.net/) and converts
 Python source code to HTML markup, rendering comments, keywords, operators,
 numeric and string literals in different colors.

 It shows how to use the built-in keyword, token and tokenize modules
 to scan Python source code and re-emit it with no changes to its
 original formatting (which is the hard part).

Classes
Parser Send colored python source.
PythonTransform Colorize Python source files

Variable Summary
str __revision__ = '$Id: python.py 3661 2005-02-23 17:05:31Z...

Variable Details

__revision__

Type:
str
Value:
'$Id: python.py 3661 2005-02-23 17:05:31Z tiran $'                     

Generated by Epydoc 2.1 on Wed Nov 30 03:59:10 2005 http://epydoc.sf.net