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

Function makeTab

tools/pythonauto/static/codemirrorepl/codemirrorepl.js:1582–1587  ·  view source on GitHub ↗
(col)

Source from the content-addressed store, hash-verified

1580 changes.push({from: 0, to: doc.size});
1581 }
1582 function makeTab(col) {
1583 var w = options.tabSize - col % options.tabSize, cached = tabCache[w];
1584 if (cached) return cached;
1585 for (var str = '<span class="cm-tab">', i = 0; i < w; ++i) str += " ";
1586 return (tabCache[w] = {html: str + "</span>", width: w});
1587 }
1588 function themeChanged() {
1589 scroller.className = scroller.className.replace(/\s*cm-s-\S+/g, "") +
1590 options.theme.replace(/(^|\s)\s*/g, " cm-s-");

Callers 1

span_Function · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected