Roger,

> Sadly that only works for trivial stuff like my example above.  The
> actual code I want to do this with has many lines of Python code
> followed by a few lines of output repeated several times.  If I could
> tell the highlighter which sections are code and which are output,
> that would work as well.

In that case, please try to give us a more representative example.
The doctest style that Ian B. was just suggesting should give you some ideas,
or even just the following code. Please pay attention to the spaces (replaced 
by * in the following to give you an idea)

#####
Playing*with*code

***>>>*import*numpy*as*np
***>>>*import*numpy.ma*as*ma
***>>>*x=*ma.array([1,2,3],*mask=[0,1,0])
*******masked_array(data*=*[1*--*3],
*************mask*=*[False**True*False],
*************fill_value=999999)

And*there*we*go.
#####

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"sphinx-dev" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sphinx-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to