Re: [Epydoc-devel] Planning for 3.0
Brought to you by:
edloper
|
From: Daniele V. <pi...@de...> - 2007-02-10 22:33:57
|
>> - docutils :python: directive to allow examples to appear as colored
>> Python code
>
> That would be fine. Is there a reason not to use doctest block? They
> already get colored.
The "python" directive has been added into the trunk. It uses the recently
refactored HTMLDoctestColorizer to perform its job.
An example:
.. python::
# This is some Python code
def foo():
pass
class Foo:
def __init__(self):
pass
--
Daniele Varrazzo - Develer S.r.l.
http://www.develer.com
|