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

Function loadMode

tools/pythonauto/static/codemirrorepl/codemirror.js:240–243  ·  view source on GitHub ↗
(cm)

Source from the content-addressed store, hash-verified

238 // Used to get the editor into a consistent state again when options change.
239
240 function loadMode(cm) {
241 cm.doc.mode = CodeMirror.getMode(cm.options, cm.doc.modeOption);
242 resetModeState(cm);
243 }
244
245 function resetModeState(cm) {
246 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