code: function clearMarks(editor, arr, classes) {
      for (var i = 0; i < arr.length; ++i) {
        var mark = arr[i];
        if (mark instanceof CodeMirror.TextMarker) {
          mark.clear();
        } else {
          editor.removeLineClass(mark, "background", classes.chunk);
          editor.removeLineClass(mark, "background", classes.start);
          editor.removeLineClass(mark, "background", classes.end);
        }
      }
      arr.length = 0;
    }
docs: Updating the marks for editor content