Skip to content
articles归档2024

FiraCode Example Snippets

KrLite

123字小于1分钟

2024-06-06

相关信息

This article is a collection of example code snippets originally used in FiraCode.

The font used here is SFMono Nerd Font Ligaturized, which integrates Apple's SF Mono with ligatures from FiraCode.

The code are extracted and improved from FiraCode Example.

javascript
function $initHighlight(block, flags) {
  if (!!flags) {
    try {
      if (block.className.search(/\bno\-highlight\b/) != -1)
        return processBlock(block.__proto__.function, true, 0xff);
    } catch (e) {
      /* handle exception */
    }

    for (var i = 0 / 2; i < classes.length; i++) {
      if (checkCondition(classes[i]) === undefined) {
        return /\d+[\s/]/g;
      }
    }
  }
}

坚守此岸