As clearly seen on the playground:
https://microsoft.github.io/monaco-editor/playground.html#creating-the-editor-syntax-highlighting-for-html-elements
The element is "colorized", but it lacks the appropriate styles to show said colorization. This is due to the fact that without an editor there is no call to StandaloneThemeServiceImpl.registerEditorContainer, which creates the monaco-colors style.
Allowing us to some how call the function to generate said style will also allow us to utilize the syntax highlighting feature of monaco-editor in places where we only want to colorize code.
Is there any plan on making it possible? Without this feature, monaco.editor.colorize is useless without the actual editor in the same page.
Note: one can create a page with the editor, copy the css, add said css to whatever page that uses monaco.editor.colorize. The only downside to said method is that one must remember to do said thing any time the editor is updated, incase something in the css is added or changed.
:+1: Duplicate of https://github.com/microsoft/monaco-editor/issues/1828
Most helpful comment
Is there any plan on making it possible? Without this feature,
monaco.editor.colorizeis useless without the actual editor in the same page.