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).
| Variable Summary |
str |
__revision__ = '$Id: python.py 3661 2005-02-23 17:05:31Z...
|
__revision__
-
- Type:
-
str
- Value:
'$Id: python.py 3661 2005-02-23 17:05:31Z tiran $'
|
|