You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Lots of Python tooling uses doctests and interactive snippets to show code.
i.e:
>>> defadd(x, y):
... return x + y
>>> add(2, 3)
5
The benefit of this is multiple:
you can test the docs
you can see both the input and output
it is a standard that jupyter supports as well
Consider this my vote to add syntax highlighting for pycon like pygments does.
BTW, thanks for Pandoc. 🙏 It is a lifesaver. I've migrated most of my custom rst tooling to it. (Still can't use rst to create LibreOffice slides because none of the existing tooling has the features I need. But I digress). Thanks again!
The text was updated successfully, but these errors were encountered:
I looked at python.xml and I don't see any explicit support there for this interactive syntax. So it would be good, probably, to add a new pycon.xml. This can "call out" to the highlighter defined in python.xml, so it might be quite simple to design. There are pointers to the documentation in the README.md for this project.
Lots of Python tooling uses doctests and interactive snippets to show code.
i.e:
The benefit of this is multiple:
Consider this my vote to add syntax highlighting for
pycon
like pygments does.BTW, thanks for Pandoc. 🙏 It is a lifesaver. I've migrated most of my custom rst tooling to it. (Still can't use rst to create LibreOffice slides because none of the existing tooling has the features I need. But I digress). Thanks again!
The text was updated successfully, but these errors were encountered: