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

SimTerm

外掛說明

Show the world how you use the command line with this plugin. Designed for tech blogs, tutorials and sections
where terminal commands matter.

This plugin, make a shortcode: [simterm][/simterm] and shows the text inside as in a terminal session, including
some typing animation and separating user input and program output.
By defaults commands have a $ symbol as the first character of the line and user input has the > (greater than)
symbol.

You can also specify the color of the line using ##red## , ##blue## , ##green## or ##yellow## or even a custom
delay for this line with ##delay=[ms]## with the amount of milliseconds to sleep.

To create the effect it uses “Show Your Terms” by Kande Bofim, a tiny and library agnostic Javascript.

螢幕擷圖

  • Some useless commands typing on screen
  • Commands and user input with colors

安裝方式

  1. Upload the plugin files to the /wp-content/plugins/plugin-name directory.
  2. Activate the plugin through the ‘Plugins’ screen in WordPress
  3. Use the Settings->SimTerm Settings screen to configure the plugin
  4. In your post enter [simterm][/simterm] shortcode to start a terminal session

常見問題集

I will update it when questions come

使用者評論

2020 年 3 月 19 日
Hey Thank you for this beautiful plugin i have a problem my website font is persian and when i type numbers in [simterm]1234[/simterm] it shows persian numbers and i cant put some html tag in it to change the font family i dont know what to do please help me ! thank you
2017 年 5 月 22 日
This is the most useful plug-in in the world. It makes my tutorials a lot better and makes everything look really nice. Please don't abandon this plug-in ever! Thank you
2017 年 2 月 8 日
Great plugin. Simple, fast and - it just works. Thanks!
閱讀全部 4 則使用者評論

參與者及開發者

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

參與者

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

對開發相關資訊感興趣?

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

變更記錄

0.3.2 (2016-12-15)

  • Updated show your terms script. Fixed a bug on empty lines

0.3.1 (2016-12-14)

  • Bug fix for older WordPress versions

0.3.0 (2016-12-14)

  • Main JS update, now supports:
    • replay
      • copy to clipboard (whole term or just a line with double click)
      • status bar (use nostatusbar class to return to the default behaviour)
      • no animate settings (window won’t be animated by default)
      • Ubuntu terminal theme
      • Blue theme (It was implemented in SimTerm, now it is in showyourterms)
      • Terminal won’t replay automatically on mouse over.
  • Compatibility with WordPress 4.7
  • Setting to enable/disable automatic animation (default enabled)
  • Setting to enable/disable statusbar (default disabled)
  • Shortcode settings (animate=”1/0″ , statusbar=”1/0″) to apply to individual terms
  • Updated translations
  • Known issue: Javascript messaged are not translated

0.2.4 (2016-08-11)

  • Main JS update, now supports pause on lines
  • Ability to change theme in the shortcode [simterm theme=”dark”]…[/simterm]

0.2.3 (2016-08-04)

  • < and > are now visible.

0.2.2 (2016-08-03)

  • Plugin translated 100% to Spanish

0.2.1 (2016-08-03)

  • WP 4.2 is now the least compatible version

0.2 (2016-08-03)

  • More config options: window title, typing speed, several new delays and character fixing for HTML output and WordPress.
  • Title is an attribute of shortcode too.
  • Fixed commands with extra attributes ##xxx## weren’t properly recognised.
  • New ##speed## option for lines to specify typing speed.
  • Version tagged 0.2

0.1.1 (2016-08-01)

  • Added translations

0.1 (2016-07-25)

  • Initial version