I'm trying to make some documents with some python code by using syntax highlight.
so I installed Pygments on my plone(version 5.2), and I see the option called "text/x-rst" on my page editor. and it seems to block the code. but it does not change the color on the code. it just looks like
how can I make syntax highlight with color?
thanks for your help in advance.
Nathan blogged about it 4 years ago, but this should still work. He used highlight JS instead of a server side solution.
Did this some time ago for an addon which shows github gists in a mosaic page. You can find (and use) this code: https://github.com/it-spirit/collective.tiles.githubgist/blob/master/src/collective/tiles/githubgist/tile.py
It uses pygments.