Formatting text as Code

Hello,
In the HTML Editor, it seems to be possible to format text as code. I know I can do it in Markdown, and even in here, by using the code tags, but that doesn't seem to work in the HTML Editor.
Ultimately, I would like to be able to format code as a language based on PrismJS. This just requires the text to be wrapped in a <code> tag with a different CSS class based on the language.
It appears that a RadzenHtmlEditorCustom control is required for this, but it looks like it cannot be used to format text and only to enter "fixed text" such as that from a Date Picker etc.
I did look at copying the RadzenHtmlEditorFormatBlock control and creating as a code format, but I wasn't able to get it to compile.
Is there a good example anywhere where I can adapt the code to suit my needs?
Many thanks

Hi @gpcottle,

You would need a custom tool for that which can invoke JavaScript interop to do something like this: html - JavaScript document.execCommand() own tags - Stack Overflow

Hi - thank you for getting back to me. I will take a look.