Skip to content
Snippets Groups Projects
Commit 1b94e9e4 authored by Peter Kroon's avatar Peter Kroon Committed by Marijn Haverbeke
Browse files

Store instance in a variable in demo/marker.html

parent 37476d5b
No related branches found
No related tags found
No related merge requests found
......@@ -36,7 +36,7 @@ CodeMirror.fromTextArea(document.getElementById("code"), {
<p>Click the line-number gutter to add or remove 'breakpoints'.</p>
<script>
CodeMirror.fromTextArea(document.getElementById("code"), {
var editor = CodeMirror.fromTextArea(document.getElementById("code"), {
lineNumbers: true,
onGutterClick: function(cm, n) {
var info = cm.lineInfo(n);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment