I am not sure what to do after this:
<link rel="stylesheet" href="lib/codemirror.css">
<script src="lib/codemirror.js"></script>
<script>
var editor = CodeMirror.fromTextArea(myTextarea, {
mode: "text/html"
});
</script>
can someone help me?
First: you have to select the first element that matches the selector.
$("#editor") won't do it, it has to be $("#editor")[0]
Second: The following code is all you need to get it to work:
does this points you to the right direction?