Skip to content

FiraCode Example Snippets

约 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;
      }
    }
  }
}

坚守此岸