MCPcopy
hub / github.com/csev/py4e / highlightLines

Function highlightLines

tools/pythonauto/static/codemirrorepl/codemirrorepl.js:2001–2007  ·  view source on GitHub ↗
(start, end)

Source from the content-addressed store, hash-verified

1999 return state;
2000 }
2001 function highlightLines(start, end) {
2002 var state = getStateBefore(start);
2003 doc.iter(start, end, function(line) {
2004 line.highlight(mode, state, options.tabSize);
2005 line.stateAfter = copyState(mode, state);
2006 });
2007 }
2008 function highlightWorker() {
2009 var end = +new Date + options.workTime;
2010 var foundWork = work.length;

Callers 1

updateLinesNoUndoFunction · 0.85

Calls 2

getStateBeforeFunction · 0.70
copyStateFunction · 0.70

Tested by

no test coverage detected