MCPcopy
hub / github.com/nwutils/nw-sample-apps / highlightLines

Function highlightLines

mini-code-edit/cm/lib/codemirror.js:1801–1807  ·  view source on GitHub ↗
(start, end)

Source from the content-addressed store, hash-verified

1799 return state;
1800 }
1801 function highlightLines(start, end) {
1802 var state = getStateBefore(start);
1803 doc.iter(start, end, function(line) {
1804 line.highlight(mode, state, options.tabSize);
1805 line.stateAfter = copyState(mode, state);
1806 });
1807 }
1808 function highlightWorker() {
1809 var end = +new Date + options.workTime;
1810 var foundWork = work.length;

Callers 1

updateLinesNoUndoFunction · 0.85

Calls 2

getStateBeforeFunction · 0.85
copyStateFunction · 0.85

Tested by

no test coverage detected