這個外掛並未在最新的 3 個 WordPress 主要版本上進行測試。開發者可能不再對這個外掛進行維護或提供技術支援,並可能會與更新版本的 WordPress 產生使用上的相容性問題。

Terminal Block

外掛說明

Add a rich text terminal window to WordPress posts with Terminal Block.

Terminal Block supports the following display and animation styles:
* Command: displays a prompt with user input and a cursor, uses typing animations
* Output: displays output text, does not use typing animations
* Progress: displays an animated progress bar

This block’s style and animation are adapted from termynal.js version 0.0.1 by Ines Montani, licensed under MIT license.

The plugin icon is terminal icons created by Bharat Icons – Flaticon.

螢幕擷圖

  • By default, each command line is prefixed with "$".
  • Terminal Block also supports custom prompts, such as ">>>".
  • You can change the terminal's title and colors in the block setting sidebar.
  • You can change the prompt used for a command in the block settings sidebar.

適用於區塊編輯器

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

  • Terminal Block Display rich text in a terminal window.

安裝方式

  1. Upload the plugin files to the /wp-content/plugins/terminal-block directory, or install the plugin directly through the WordPress plugins page.
  2. Activate the plugin through the ‘Plugins’ page in WordPress.
  3. Search for the block within the Gutenberg block editor.

常見問題集

How do I use custom prompts?

  1. Select the commmand block you would like to have a custom prompt.
  2. Select “Block” in the settings sidebar.
  3. Change the prompt from “$” to your custom prompt in the “Prompt Settings” section.

Does this block use similar typing animations to termynal.js?

Yes, typing animations are supported as of version 0.1.1.

使用者評論

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

參與者及開發者

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

參與者

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

對開發相關資訊感興趣?

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

變更記錄

0.1.3

  • Test up to WordPress 6.1
  • Set up linting and CI workflows

0.1.2

  • Fix theme style bleeding into editor view
  • Add support for user defined accent color for prompt and title

0.1.1

  • Use inner blocks for terminal inputs, outputs, and progress bars
  • Add animation
  • Add Fira Mono font

0.1.0

  • Initial release