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

AH Code Highlighter

外掛說明

Really simple to use and extrem lightweigt Code Highlighting with 8 different code highlighting themes. You can highlight your code with or without line numbers. It is based on Lea Verou’s Prism.js. Prism is used on several big websites like the Smashing Magazine, A list Apart, CSS Tricks, SitePoint and Drupal, because it is fast, simple and lightweight.

AH Code Highlighter supports PHP, HTML, CSS, JavaScript, Apache, HTTP, Sess, Lass, Markdown, Nginx, MySql, Xml, Mathml, JSON, Git, C, C# und C++ and more…

Demo

You can find a demo of the plugin on the plugin homepage: Plugin Homepage

Basic Usage

Install and activate the plugin. Select your favorite Highlight Theme on the Options page (Settings => AH Code Highlighter). When you write a new post, click on the Code button, choose the code language and insert your code. Click OK and you’re done.

螢幕擷圖

  • The Settings Page
  • The Code Button
  • The Code Generator.
  • The Default Highlighting Theme
  • The Okaidia Highlighting Theme
  • The Coy Highlighting Theme
  • The Twilight Highlighting Theme
  • The Solarized Lite Highlighting Theme
  • The Dark Highlighting Theme
  • The Funky Highlighting Theme
  • The Tomorrow Night Theme

安裝方式

  1. Upload the plugin files to the /wp-content/plugins/ah-prism-syntax-highlighter/ directory, or install the plugin through the WordPress plugins screen directly.
  2. Activate the plugin through the ‘Plugins’ screen in WordPress
  3. Ready to use!

常見問題集

None at this time.

Installation Instructions
  1. Upload the plugin files to the /wp-content/plugins/ah-prism-syntax-highlighter/ directory, or install the plugin through the WordPress plugins screen directly.
  2. Activate the plugin through the ‘Plugins’ screen in WordPress
  3. Ready to use!

使用者評論

2018 年 9 月 3 日
This is a perfect plugin, I can highlight the code without the raw editor. There is a petition, is it possible to add bash support? Thank you.
閱讀全部 1 則使用者評論

參與者及開發者

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

參與者

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

對開發相關資訊感興趣?

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

變更記錄

2.0.5

  • Add Tomorrow Night theme
  • Add new plugins and programming languages

2.0.4

  • Bugfix

2.0.3

  • Add two highlighting themes
  • Rename the Plugin

2.0.2

  • Add Review Link

2.0.1

  • Bugfix and backward compatibility

2.0.0

  • Completely rewritten

1.0.5

  • Some little fixes