So basically I want CM to only create the html with syntax highlighting from a source string, but not invoke any editor functionality, as this would be overhead.
(and performance is a factor, as the html then will be rasterized with the htmltocanvas libary and it can be lots of source code)
Is there a simple way to do that?
Or is the overhead of multiple CM-instances quite small, as long as they are not active?
(one instance of CM will be in use)