Monospaced text area

Is there any way to make a textarea, created by

      settings: {
        useTextarea: true

to use mono-spaced text?

In a panel-plugin I have a text area that allows the user to enter (usually) data-like content; think JSON or XML.
It would be awesome to have some syntax highlighting codemirror-style, but for starters using mono-spaced text would be nice.

I do not see how to apply custom CSS to the TSettings & the generated HTML has no distinct classes or IDs (probably intentional) to style it.


I’m not aware of any standard editor that does this. I’ve seen other plugins use the Monaco text editor to build custom editors though. You can see one example here: