HI.
I open CodeMirror in a dialog where I write SourceCode with CM-functionality. When I hit the save button, I want to copy the hightlighted CM-text in a div outside of that dialog (highlighting should remain there).
I found the method getValue() where I get the string from CM without styling.
Is there a possibillity to get the highlighted html Code? Or maybe line by line with styling classes from CM?
I want to copy the codeblock exactly the way it looks in another html-element.
Every help is more than appreciated