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

Prism WP

描述

Beautify the source codes displayed on your site using the Prism syntax highlighter.

Languages Supported:

  • Bash
  • C
  • CoffeScript
  • C++
  • C#
  • CSS
  • Gherkin
  • Groovy
  • HTTP
  • Java
  • JavaScript
  • Markup
  • PHP
  • Python
  • Ruby
  • SCSS
  • SQL

Features:

  • Choose from 7 source code styles.
  • Line Highlight
  • Line Numbers
  • Show Invisibles
  • Autolinker
  • Webplatform Docs
  • File Highlight

Demos

Credits

License

GPLv2 or later – http://www.gnu.org/licenses/gpl-2.0.html

螢幕截圖

  • Settings

安裝

Install via WordPress Admin

  1. Ready the zip file of the plugin
  2. Go to Admin > Plugins > Add New
  3. On the upper portion click the Upload link
  4. Using the file upload field, upload the plugin zip file here and activate the plugin

Install via FTP

  1. First unzip the plugin file
  2. Using FTP go to your server’s wp-content/plugins directory
  3. Upload the unzipped plugin here
  4. Once finished login into your WP Admin and go to Admin > Plugins
  5. Look for Prism WP and activate it

Usage

  1. Choose the language you want to use and appearance in Admin > Settings > Prism WP.
  2. Inside your post (or page) content editor, click the Text tab.
  3. Wrap your code inside ‘<pre><code></code></pre>’ tags.
  4. Example to display a PHP code:

    

常見問題

How do I add syntax highlighting to my codes?

See Usage section.

評價

There are no reviews for this plugin.

貢獻者及開發者

“Prism WP” 是一個開源的軟體。以下的人對這個外掛作出了貢獻。

貢獻者

將 Prism WP 外掛本地化為台灣繁體中文版。

對開發相關資訊感興趣?

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

修改日誌

1.0.0 – 2013-11-21

  • Initial commit.