I am using Codemirror's plugin for textarea but I am not able to retrieve the value of textarea.
Code:
var editor = CodeMirror.fromTextArea(document.getElementById("code"), {
lineNumbers: true,
matchBrackets: true,
mode: "text/x-csrc"
});
function showCode()
{
var text = editor.mirror.getCode();
…
The App: I have a textarea element in my page. It is transformed using CodeMirror, because I need to indent and highlight html code withing it. Pic is in the link:
[textarea using codemirror]
http://uploadingit.com/file/gxftd2cps9…