From: Guenter M. <mi...@us...> - 2012-10-16 07:40:07
|
On 2012-10-03, rndblnch wrote: > hello, > some pygment lexers do have options. > PythonConsoleLexer is such a lexer: it supports a boolean python3 option to > support Python console output for both python2 & python3. > is there a way to pass an option to pygment from my document? > i would expect something like: >| .. code:: pycon >| :option: python3 >| >>> print("Hello world!") >| Hello world! > any idea how to achieve this? Passing options to pygments is not implemented (yet). It might become, if it is a common request. The proposed syntax seems all right. You might consider filing an enhancement request at the tracker_, so that we have a permanent record. Thanks, Günter .. _tracker: http://sourceforge.net/tracker/?group_id=38414&atid=422033 |