some pygments lexers support options (notably the pycon lexer supports a python3 flag that enables python3 support).
the attached patch propose to support passing options to pygments using this syntax:
.. code:: pycon
:pygments-options: python3
>>> print("coucou")
coucou
remark:
the attached patch supports a list of key[=value] as pygments-options content, but values can not be lists, which would be needed to support all pygments lexer options.
View and moderate all "feature-requests Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Feature Requests"
prototype implementation
Last edit: Anonymous 2016-12-24
How about separating the pygments-options by newlines in the input to
allow list arguments?
I have now attached an updated patch version in patches/112.
Is this something the project is still considering? I'd love to have the ability to pass additional Pygments options. How can I help make this happen?
For ideas in this particular case, have a look at the suggestions and preconditions in the discussion of patch/112.
For help on getting started and discussion of details, the docutils-devel mail list may be a good place.
Closing as duplicate: Discussion moved to
patches/112.