TinyMCE has a great plugin to insert source code snippets in the editor: https://www.tiny.cloud/docs/plugins/codesample/#codesample_languages
With the plugin itself, this just work inside the editor. If the snippet is saved, there is no Syntax Highlighting - Which is useless in my Point of View. When I want to document source code, the main target are the readers and they're viewing the page in read-only mode. This is a common requirement and no problem in other systems e.g. Confluence.
The TinyMCE codesample plugin has a soluition: It's compatible to Prism.js. You just need to include the js and css file in a JSP of Connections (e.g. header.jsp), and the codesamples in TinyMCE were pretty rendered on the page in view-only mode.
While this works in Blogs or Forums, it's broken in Wikis. However, executing Prism.highlightAll() manually would resolve the problem. Sadly it's hard to fix this, since it seems that the Connections JS from Wikis interfere with each other and this breaks Prism.js.
I already opened a support case, but sadly HCL told me this is not supported. So please fix this with an idea. Connections is bundled with TinyMCE and the premium plugins of them. It doesn't make sense not to support them just because they're relying on third party components.