On 19:51 Sat 15 Sep , Jonathan Waltman wrote: > > Is there a way to get correct highlighting for multiline Python strings > > in code blocks using the html builder. In the following code block: > > > > .. code-block: python > > > > >>> long_string=u"""xxxxxxx > > yyyyyyyyyyy""" > > I think you need a secondary prompt (...) before the second line to > indicate that it is not the output of the first line. > > Something like this: > > >>> long_string=u"""xxxxxxx > ... yyyyyyyyyyy""" > > If you don't want to add prompts before your examples, you could use > the "testcode" directive which is included with the doctest extension. > See http://sphinx.pocoo.org/ext/doctest.html > > -- > Jonathan Waltman
Thanks. You are indeed right that in the Python shell the ... appears. I'll stick to this hint. Marcin -- You received this message because you are subscribed to the Google Groups "sphinx-dev" group. To post to this group, send email to sphinx-dev@googlegroups.com. To unsubscribe from this group, send email to sphinx-dev+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/sphinx-dev?hl=en.