Code Syntax Highlighting Block

外掛說明

A WordPress plugin that provides a Gutenberg block for displaying computer source code with syntax-highlighting. Uses highlight.js under the hood.

  • ✅ Supports 192 languages
  • ✅ 256 included themes
  • ✅ Server rendered static HTML
  • ✅ Zero JS runtime dependencies
  • ✅ Dynamic light/dark mode based on preferred color scheme

螢幕擷圖

  • A demo of syntax-highlighted PHP code.
  • A demo of editing the block in the Gutenberg editor.

適用於區塊編輯器

這個外掛提供 1 個可供 Gutenberg/區塊編輯器使用的區塊。

  • Code with Syntax Highlighting Display computer code with syntax highlighting.

常見問題集

Why no line numbers?

Because highlight.js does not have them.

使用者評論

這個外掛目前沒有任何使用者評論。

參與者及開發者

以下人員參與了開源軟體〈Code Syntax Highlighting Block〉的開發相關工作。

參與者

將〈Code Syntax Highlighting Block〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

變更記錄

1.1.2

  • Updated Codemirror code editor in Gutenberg to latest version
  • Updated internal dependencies

1.1.1

  • Added option for setting global default line height

1.1.0

  • Added better code editor

1.0.0

  • Release