MCPcopy Index your code
hub / github.com/nwutils/nw-sample-apps / styleToClass

Function styleToClass

mini-code-edit/cm/lib/codemirror.js:2525–2528  ·  view source on GitHub ↗
(style)

Source from the content-addressed store, hash-verified

2523 var st = this.styles, allText = this.text, marked = this.marked;
2524 var len = allText.length;
2525 function styleToClass(style) {
2526 if (!style) return null;
2527 return "cm-" + style.replace(/ +/g, " cm-");
2528 }
2529
2530 if (!allText && wrapAt == null) {
2531 span(" ");

Callers 1

codemirror.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected