Syntax highlight on my plone page

Hello,

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

<pre> tag.

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.
https://www.nathanvangheem.com/posts/2016/06/23/how-to-add-code-snippet-syntax-highlighting-your-plone-theme.html

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.

thank you so much!!