[WordPress] 外掛分享: WP-Terminal

前言介紹

  • 這款 WordPress 外掛「WP-Terminal」是 2009-03-04 上架。 目前已經下架不再更新,不建議安裝使用。
  • 目前有 30 個安裝啟用數。
  • 上一次更新是 2010-04-12,距離現在已有 5501 天。超過一年沒更新,安裝要確認版本是否可用。以及後續維護問題!
  • 外掛最低要求 WordPress 2.0 以上版本才可以安裝。
  • 尚未有人給過這款外掛評分。
  • 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。

外掛協作開發者

msimone |

外掛標籤

unix | linux | command | console | terminal |

內容簡介

WP-Terminal 會在終端機命令上產生一個類似終端機的方框。

這段程式碼是 WP-Syntax 的修改版,是一個針對 WordPress 的原始碼高亮外掛 (https://wordpress.org/extend/plugins/wp-syntax/screenshots/)。

基本使用方法

使用

包含終端機區塊,而 user 和 computer 是可選的(如果不提供 "user" 和 "computer",則會顯示它們)。更多範例說明

使用方法

使用

包含終端機區塊,而 user 和 computer 是可選的(如果不提供 "user" 和 "computer",則會顯示它們)。

範例1: 未自訂指令


ls -a

範例2: 自訂使用者和電腦名稱


ls -a

範例3: 只自訂使用者


ls -a

範例4: 只自訂電腦名稱


ls -a

範例5: 多行指令


ls
. ..


ls -a
. .. .hiden_file

TODO

1. 允許指定工作目錄

2. 允許自訂提示訊息

原文外掛簡介

WP-Terminal generates a terminal-like box around your terminal commands.
The code is a modification of WP-Syntax, a source code highlighter plugin for WordPress (https://wordpress.org/extend/plugins/wp-syntax/screenshots/).
Basic Usage
Wrap terminal blocks with

 and 

, being user and computer optional (“user” and “computer” will be shown if you don’t provide them). More usage
examples
Usage
Wrap terminal blocks with

 and 

, being user and computer optional (“user” and “computer” will be shown if you don’t provide them).
Example 1: No customized command

  ls -a

Example 2: User and computer customizations

  ls -a

Example 3: Customizing just the user

  ls -a

Example 4: Customizing just the computer

  ls -a

Example 5: Multiline commands

  ls
  . ..
  
ls -a . .. .hiden_file

TODO

1. Allow to specify working dir

2. Allow to customize prompt

各版本下載點

  • 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
  • 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「WP-Terminal」來進行安裝。

(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。


0.1 | 0.2 | 0.2.1 | trunk |

延伸相關外掛(你可能也想知道)

  • Blog Terminal 》Blog Terminal 創建了一個終端風格的框,您可以使用它來演示終端輸出或展示輸入終端/控制台命令的過程,以更形象地展示實際使用 Linux/Unix 終端或 Windows c...。
  • WP-ShkShell 》WP-ShkShell 提供一個類似終端機的方塊,可在頁面或文章中嵌入終端機命令。, 它還支持多行、多種命令和語法高亮。, 此代碼是 WP-Terminal (https://wordpress...。

文章
Filter
Apply Filters
Mastodon