MCPcopy Create free account
hub / github.com/ronreiter/interactive-tutorials / styleToClass

Function styleToClass

static/js/codemirror/codemirror.js:3938–3942  ·  view source on GitHub ↗
(style)

Source from the content-addressed store, hash-verified

3936
3937 var styleToClassCache = {};
3938 function styleToClass(style) {
3939 if (!style) return null;
3940 return styleToClassCache[style] ||
3941 (styleToClassCache[style] = "cm-" + style.replace(/ +/g, " cm-"));
3942 }
3943
3944 function lineContent(cm, realLine, measure) {
3945 var merged, line = realLine, lineBefore, sawBefore, simple = true;

Callers 1

insertLineContentFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected