### Code mirror

##### Editable example

<!-- Create a simple CodeMirror instance --> <link rel="stylesheet" href="lib/codemirror.html"> <script src="lib/codemirror-2.html"></script> <script> var editor = CodeMirror.fromTextArea(myTextarea, { lineNumbers: true }); </script>

##### Read-only example

<!-- Create a simple CodeMirror instance --> <link rel="stylesheet" href="lib/codemirror.html"> <script src="lib/codemirror-2.html"></script> <script> var editor = CodeMirror.fromTextArea(myTextarea, { lineNumbers: true }); </script>