Skip to content
Sections
>> Trisquel >> 套件 >> aramo >> javascript >> node-prismjs
nabia  ] [  aramo  ]
[ 原始碼: node-prismjs  ]

套件: node-prismjs (1.27.0+dfsg+~1.26.0-1)

Lightweight, robust, elegant syntax highlighting

A spin-off project from Dabblet. Some of its unique features include:

 * It’s tiny. The core is only 1.5KB minified & gzipped.
 * It’s incredibly extensible. Not only it’s easy to add new languages, but
   also to extend existing ones.
 * It encourages good author practices. Other highlighters encourage or even
   force you to use elements that are semantically wrong, like <pre> (on its
   own) or <script>. Prism forces you to use the only semantically correct
   element for marking up code: <code>.
 * One of its best features: The language definition is inherited. This means
   that if multiple code snippets have the same language, you can just define
   it once, in one of their common ancestors.
 * It looks good. All three of its existing themes.
 * It supports parallelism through Web Workers, for better performance in
   certain cases.
 * It doesn’t force you to use any Prism-specific markup, not even a
   Prism-specific class name, only standard markup you should be using anyway.

Node.js is an event-based server-side JavaScript engine.

其他與 node-prismjs 有關的套件

  • 依賴
  • 推薦
  • 建議
  • dep: node-clipboard
    Node.js module to copy to clipboard without flash

下載 node-prismjs

下載可用於所有硬體架構的
硬體架構 套件大小 安裝後大小 檔案
all 368.0 kB2152 kB [文件列表]