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

WP-SimpleSyntaxHighlighter

描述

Simple SyntaxHighlighter for WordPress adds Alex Gorbatchev’s JavaScript SyntaxHighlighter to your blog.

Alex Gorbatchev’s SyntaxHighlighter is a fully functional self-contained code syntax highlighter developed in JavaScript. To get an idea of what SyntaxHighlighter is capable of, have a look at the demo page.

The plugin itself only wraps this functionality and provides some basic configuration through the WordPress Admin panel.

Features:

  • Adds code syntax highlighting to blog
  • Includes syntax brushes for the following languages: ActionScript, BashShell, C/C++, C#, ColdFusion, CSS, Delphi/Pascal, Diff, Erlang, F#, Groovy, Java, JavaFX, JavaScript, Perl, PHP, Plain, PowerShell, Python, Ruby, Scala, SSIS Expressions, SQL, VB.net, and XML/HTML
  • Syntax brush availablity configurable by admin
  • Includes CSS Theme support

安裝

  1. Upload the entire ‘wp-simplesyntaxhighlighter’ to the ‘/wp-content/plugins/’ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress

To configure use the ‘Simple SyntaxHighlighter’ menu item in the ‘Settings’ section of the WordPress Admin Panel.

常見問題

Where can I see examples of the code syntax highlighter?

You can see examples at the SyntaxHighlighter author’s demo page.

I have installed the plugin and it doesn’t see to do anything, what am I doing wrong?

The plugin only adds the needed JavaScript and Stylesheets to perform the syntax highlighting. Please visit the usage guide for details on how to use this plugin in your posts.

評價

There are no reviews for this plugin.

貢獻者及開發者

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

貢獻者

將 WP-SimpleSyntaxHighlighter 外掛本地化為台灣繁體中文版。

對開發相關資訊感興趣?

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

修改日誌

1.0.9302

  • Updated to use version 2.0.364 of Alex Gorbatchev’s JavaScript SyntaxHighlighter.
  • Detailed changelog can be found here.

1.0.9278

  • Updated to use version 2.0.320 of Alex Gorbatchev’s JavaScript SyntaxHighlighter.
  • Detailed changelog can be found here.

1.0.9122

  • Initial version. Wraps version 2.0.296 of Alex Gorbatchev’s JavaScript SyntaxHighlighter.