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

Function styleToClass

tools/pythonauto/static/codemirrorepl/codemirrorepl.js:2725–2728  ·  view source on GitHub ↗
(style)

Source from the content-addressed store, hash-verified

2723 var st = this.styles, allText = this.text, marked = this.marked;
2724 var len = allText.length;
2725 function styleToClass(style) {
2726 if (!style) return null;
2727 return "cm-" + style.replace(/ +/g, " cm-");
2728 }
2729
2730 if (!allText && wrapAt == null) {
2731 span(" ");

Callers 1

codemirrorepl.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected