How to change first line number after call of constructor
var editor = CodeMirror.fromTextArea(document.getElementById("codemirror"), {
firstLineNumber: 5 // how to change later?
});
use editor.firstLineNumber = 10;
don't work.
As specified in the doc, you can change configuration with that function: setOption.
So in you case, you can code:
editor.setOption('firstLineNumber', 10);