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

JSJ Code Highlight

描述

JSJ Code Highlight is a simple syntax highlighter for all your WordPress code snippets. The plugin includes four visual themes to enchance the look and feel of your code. These themes (taken form Highlight.js) have been enhanced for a more contemporary feel.

Above all the plugin aims to be simple and intuitive. Rather than bloating the plugin with features, the plugin has only a small set of carefully curated options to maximize simplicity and ease-of-use.

The plugin includes the ability to:

  • Choose from a variety of themes
  • Choose from various mono-spaced typefaces
  • Add line numbers to your code automatically
  • Activate tab replacement for your code

Plugin by Jorge Silva-jetter

Built with Highlight.js

Inpsired by Octopress

Available Options

Visual Themes: ‘Monakai Sublime’, ‘Solarized Dark’, ‘Github’, and ‘Tommorow’

Typefaces: Inconsolta, Droid Sans Mono, Source Code Pro, Deja Vu Sans Mono, Web Fonts

Enhance visual style with custom CSS

Add line numbers to code blocks

Do automatic tab replacement on code blocks

螢幕截圖

  • Monakai Sublime. 1 of 4 avialable themes.
  • Solarized Dark. 1 of 4 avialable themes.
  • Github. 1 of 4 avialable themes.
  • Tommorow. 1 of 4 avialable themes.
  • You can also remove line number and additional CSS for a more simple look or for writing your own CSS.
  • Admin interface

安裝

  1. Upload the entire jsj-gallery-slideshow folder to the /wp-content/plugins/ directory or simply use the Plugin upload interface in the admin.
  2. Activate the plugin through the ‘Plugins’ menu in WordPress. At that moment, all your code snippets will be automatically converted into JSJ Code Highlight blocks.
  3. Optional: If you want to change any of the options for the plugin, go to Settings -> JSJ Code Highlight.

常見問題

If you have any questions, please try to add a ticket in the WordPress support forum for this plugin.

If you have any feedback or suggestions, email me at jorge dot silva at thejsj dot com.

評價

閱讀全部8個評價

貢獻者及開發者

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

貢獻者

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

對開發相關資訊感興趣?

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

修改日誌

1.0

Added Code Highlight with lines numbers and without
Four Basic themes from Highlight.js
Basic syntax highlighting
Option for various fonts
Hooks for add-ons and other plugins.

1.0.2

Fixing minor extra action in plugin