Zeddotes Enhanced Code Block

外掛說明

Zeddotes Enhanced Code Block adds inspector controls to the WordPress core Code block:

  • Language select with Prism.js highlighting in the editor and on the frontend
  • Optional line numbers
  • Tab key indents inside the block (Shift+Tab outdents); optional spaces instead of tabs
  • Configurable tab size (2 / 4 / 8)
  • Optional copy button before or after the code block, aligned left / center / right (or hidden)

No separate block type — authors keep using the standard Code block.

安裝方式

  1. Upload the plugin folder to /wp-content/plugins/zeddotes-enhanced-code-block (or this directory name).
  2. Run npm install and npm run build if build/ is not present.
  3. Activate the plugin through the Plugins screen.
  4. Insert a Code block and open the Zeddotes Enhanced Code Block panel in the sidebar.

常見問題集

Does this replace the core Code block?

No. It extends core/code via block filters.

Where does highlighting run?

In the block editor and on the frontend, via a bundled Prism.js build.

使用者評論

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

參與者及開發者

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

參與者

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

對開發相關資訊感興趣?

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

變更記錄

1.0.0

  • Initial release: language select, Prism highlighting, configurable copy button.