4
Programming Fonts - Test Drive
source link: https://www.programmingfonts.org/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
Programming Fonts
// Type some code ->
console.log "oO08 iIlL1 g9qCGQ ~-+=>";
function updateGutters(cm) {
var gutters = cm.display.gutters,
__specs = cm.options.gutters;
removeChildren(gutters);
for (var i = 0; i < specs.length; ++i) {
var gutterClass = __specs[i];
var gElt = gutters.appendChild(
elt(
"div",
null,
"CodeMirror-gutter " + gutterClass
)
);
if (gutterClass == "CodeMirror-linenumbers") {
cm.display.lineGutter = gElt;
gElt.style.width = (cm.display.lineNumWidth || 1) + "px";
}
}
gutters.style.display = i ? "" : "none";
updateGutterSpace(cm);
return false;
}
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK