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

Google Syntax Highlighter for WordPress

外掛說明

This plugin easily integrates the Google Syntax Highlighter by Alex Gorbatchev into WordPress.

Feature summary

  • 100% client side, no server dependency
  • Multiple languages support
  • Wide browser support
  • Very lightweight

Languages Supported

  • C++ (cpp, c, c++)
  • C# (c#, c-sharp, csharp)
  • CSS (css)
  • Delphi (delphi, pascal)
  • Java (java)
  • Java Script (js, jscript, javascript)
  • PHP (php)
  • Python (py, python)
  • Ruby (rb, ruby, rails, ror)
  • Sql (sql)
  • VB (vb, vb.net)
  • XML/HTML (xml, html, xhtml, xslt)

螢幕擷圖

  • Simple Ruby Example

安裝方式

  1. Extract plugin into /wp-content/plugins directory.
  2. Activate the plugin.
  3. Specify your code snippets in your blog post using the Usage Directions provided by the Google Syntax highlighter.

Here is an example to produce ruby syntax highlighting once the plugin is activated:

<pre name="code" class"ruby">
def my_ruby_snippet
  blog_post.should(be_highlighted)
end
</pre>

使用者評論

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

參與者及開發者

以下人員參與了開源軟體〈Google Syntax Highlighter for WordPress〉的開發相關工作。

參與者