Hi all, I used to use the codesample plugin on TinyMCE, for codesamples in rich text, and prism.js on the frontend for sytax hylighting, in Umbraco 8. But I can't seem to get syntax highlighting working on Umbraco 12...
I've enabled the plugin with the following app settings:
json
"Umbraco": {
"CMS": {
"RichTextEditor": {
"Commands": [
{
"Alias": "blockquote",
"Name": "BlockQuote",
"Mode": "Selection"
},
{
"Alias": "codesample",
"Name": "Code Sample",
"Mode": "Insert"
},
{
"Alias": "fullscreen",
"Name": "Full Screen",
"Mode": "Selection"
}
],
"Plugins": [
"codesample",
"fullscreen"
]
}
}
}
Which makes it available in the rich text editor (see screenshot).
I then downloaded the css and js files from:
https://prismjs.com/download.html#themes=prism-okaidia&languages=markup+css+clike+javascript+csharp+css-extras+csv+docker+git+json+log+markdown+powershell+python+jsx+tsx+regex+scss+scheme+solution-file+sql+typescript+xml-doc+yaml&plugins=line-highlight+line-numbers+show-language+highlight-keywords+inline-color+toolbar+treeview
and added them to my frontend.
But syntax highlighting is just not working on the frontend, every guide online says it should "just work"... does anyone have any ideas?