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

Code Markup

安裝

  1. Copy code-markup.php into your WordPress plugins directory (wp-content/plugins).
  2. Log in to WordPress Admin. Go to the Plugins page and click Activate for Code Markup.
  3. Go to the Options page and click Writing. Make sure “WordPress should correct invalidly nested XHTML automatically” is NOT checked. (Otherwise it may do funny things to your code listings.)

常見問題

What is this good for?

The plugin allows you to quickly copy and paste code into your blog, and add HTML markup to it to emphasise certain parts of it. Normally this is not possible without a lot of fiddly manual editing.

what tags are allowed by default?

If the code block has its lang attribute set to html or xhtml, then no tags are allowed: all tags are escaped and will display as typed. Otherwise the following tags are allowed: em strong b i ins del a span

How do I change the default behaviour?

To make the code block render as straight HTML, set the code block’s “markup” attribute to “all”. In this case, make sure that you have typed correct HTML!

To make the code block display exactly as typed, set the code block’s “markup” attribute to “none”.

To allow the default tags to be rendered as HTML, even in HTML code, set the code block’s “markup” attribute to “default”.

評價

There are no reviews for this plugin.

貢獻者及開發者

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

貢獻者

將 Code Markup 外掛本地化為台灣繁體中文版。

對開發相關資訊感興趣?

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