Chciałem ogarnąć przeglądarkowy edytor kodu CodeMirror
1.Rozpakowuje paczkę z tej strony https://codemirror.net/
2.W głównym katalogu wstawiam ten kod
<!-- Create a simple CodeMirror instance -->
<link rel="stylesheet" href="lib/codemirror.css">
<script src="lib/codemirror.js"></script>
<script>
var editor = CodeMirror.fromTextArea(myTextarea, {
lineNumbers: true
});
</script>
3.Widać że paczki dobrze się wczytały, bo inaczej by wyskoczyło errr-file-not-found, ale wyskakuje błąd codemirrortest.html:5 Uncaught ReferenceError: myTextarea is not defined
at codemirrortest.html:5
Co tu mogłem zrobić źle?