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

Ion Snytax Highlighter

外掛說明

This plugin enables you to highlight syntax using the PEAR Text_Highlighter class. Other syntax highlighters that use GeSHi have slower rendering speeds which will increase your page load time. However, this plugin gives you the speed and efficiency provided by the PEAR developers. You even have the option of enabling or disabling the line numbers as well as specifying your own style.

安裝方式

  1. Download ionhighlight.zip and unzip it.
  2. Upload the plugin folder to wp-content/plugins/ and activate from the Plugin administrative menu.

常見問題集

How do I highlight my code?

You can use the bbtags. Simply place your code between the tags and your code will be highlighted. You may also specify one of the supported languages by using the lang parameter –

How do I enable/disable line numbers?

Under the settings menu click on the Syntax Highlighter link. From there either select “Yes” or “No” to the Line Numbers option.

Characters are being converted to their HTML entities

This is because you have entered your code in Visual mode. You must enter your code in HTML mode.

This plugin breaks my XHTML validation.

This plugin encapsulates code using div tags. Div is a block element and cannot be placed inside an inline element. This is probably causing your validation to break. If you place

 tags inline, you are placing them inside a</p>
 <p>&lt;</p>
 <p>p&gt; which is an inline element. This causes your validation to break. Therefor you must place [code] tags on a line by itself. For example: BAD     This is hello world in PHP: [code]

GOOD This is hello world in PHP:

使用者評論

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

參與者及開發者

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

參與者

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

對開發相關資訊感興趣?

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