Roger Binns wrote:
> I'm trying to do markup that shows output interspersed with source.
> Unfortunately I can't find anything that will work. You can see what
> I did with HTML in http://apsw.googlecode.com/files/apsw-3.6.3-r1.html
> in the example section.
>
> As an example this is the best I have managed to get so far:
>
> ::
> a,b=(3,4)
> print " ",a
> print " ",b
>
> | 3
> | 4
>
> I really want the output more to the right of the source above and I
> want it using a fixed width font and not highlighted in any way
> (sometimes it happens to be valid python and other times not), My
> attempts at getting double backticks around the line failed. What I
> really need is the equivalent to HTML's <PRE> but one that works
> inside an existing :: block. And I'd love to make it stand out in a
> different way than the source just as in the HTML version I linked
> above.
Traditionally people just use the interactive style:
::
>>> a, b = (3, 4)
>>> print " ", a
3
>>> print " ", b
4
--
Ian Bicking : [EMAIL PROTECTED] : http://blog.ianbicking.org
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---