外掛說明
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
安裝方式
Install via WordPress Admin
- Ready the zip file of the plugin
- Go to Admin > Plugins > Add New
- On the upper portion click the Upload link
- Using the file upload field, upload the plugin zip file here and activate the plugin
Install via FTP
- First unzip the plugin file
- Using FTP go to your server’s wp-content/plugins directory
- Upload the unzipped plugin here
- Once finished login into your WP Admin and go to Admin > Plugins
- Look for Prism WP and activate it
Usage
- Choose the language you want to use and appearance in Admin > Settings > Prism WP.
- Inside your post (or page) content editor, click the Text tab.
- Wrap your code inside ‘<pre><code></code></pre>’ tags.
- Example to display a PHP code:
常見問題集
- How do I add syntax highlighting to my codes?
-
See Usage section.
使用者評論
這個外掛目前沒有任何使用者評論。
參與者及開發者
變更記錄
1.0.0 – 2013-11-21
- Initial commit.