MCPcopy Index your code
hub / github.com/csev/py4e / loadMode

Function loadMode

tools/pythonauto/static/codemirror/codemirror.js:201–204  ·  view source on GitHub ↗
(cm)

Source from the content-addressed store, hash-verified

199 // Used to get the editor into a consistent state again when options change.
200
201 function loadMode(cm) {
202 cm.doc.mode = CodeMirror.getMode(cm.options, cm.doc.modeOption);
203 resetModeState(cm);
204 }
205
206 function resetModeState(cm) {
207 cm.doc.iter(function(line) {

Callers 2

codemirror.jsFile · 0.70
attachDocFunction · 0.70

Calls 1

resetModeStateFunction · 0.70

Tested by

no test coverage detected