Re: exclamation mark in code block generates error tag around !

"Jeff Hinrichs - DM&T" <[email protected]>
Newsgroups gmane.text.docutils.user
Message-ID <CALHZEO9eGUac_sJ2p1jpsBaBYy=CisYhTS5tFR6g6zmViM-pRw@mail.gmail.com>
Thank you, thank you.



On Fri, Jan 1, 2016 at 10:15 AM, Marc 'BlackJack' Rintsch <[email protected]>
wrote:

> On 01/01/16 15:57, Jeff Hinrichs - DM&T wrote:
> > rST:
> >
> > .. code:: python
> >
> >
> >     >>> print('Hello World!')
> >
> >     Hello World!
> >
> >     >>>
>
> The problem here is that you are trying to highlight code as Python
> source code which is a console session and not just Python source code.
>
> Pygments has a separate lexer for console sessions called `pycon`.  Try
> that one instead of `python`.
>
> Ciao,
>         Marc 'BlackJack' Rintsch
> --
> „A life is like a garden. Perfect moments can be had, but not preserved,
>  except in memory. LLAP” — Leonard Nimoy's last tweet.
>
>
>
> ------------------------------------------------------------------------------
>
> _______________________________________________
> Docutils-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/docutils-users
>
> Please use "Reply All" to reply to the list.
>
>


-- 
Best,

Jeff Hinrichs
402.218.1473

------------------------------------------------------------------------------
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.