Roger Binns schrieb:
> 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.

Apart from that, in the linked HTML file, I had to look twice to get the
interspersed output, why not just use standard unhighlighted code blocks?

::

    a, b = (3, 4)
    print a
    print b

.. code-block:: text

    3
    4

Georg

--~--~---------~--~----~------------~-------~--~----~
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