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

Prism Highlight

描述

This plugin uses the Prism.JS to Highlight & Style Code

The plugin also adds styling to the existing prism Quick tag in your WordPress text editor.

Languages Supported:

  • Markup
  • CSS
  • C-like
  • JavaScript
  • PHP

螢幕截圖

  • Click The prism Button To Wrap Code in Opening & Closing Pre tags.
  • CSS Code Highlighted with Line no.
  • CSS Code Highlighted with no Line.
  • PHP Code Example.

安裝

  1. Upload plugin folder to the /wp-content/plugins/ directory
  2. Activate the plugin through the \Plugins\ menu in WordPress

常見問題

#1. No code displayed on the post?

Ans. Please parse your code using any HTML to XML parser, Use Postify to parse your code.

#2. How to remove line numbers?

Ans. Simple remove class="line-numbers" from <pre.

#3. Why its support 5 languages only?

Ans. I want the really lightweight plugin, so its support only 5 languages.

評價

There are no reviews for this plugin.

貢獻者及開發者

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

貢獻者

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

對開發相關資訊感興趣?

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

修改日誌

1.5

  • Version Change Added, WordPress 5.9 Support
  • Update code from Official Website – PrismJS 1.15.0 – 31/08/2018

1.4

  • Version Change Added, WordPress 4.7 Support
  • Update code from Official Website – 05/01/2017

1.3

  • Version Change Added, WordPress 4.6 Support

1.2

  • Description Changed
  • Icon Added

1.1

  • Code Changes

1.0.1

  • Change Screen Shots

1.0

  • Release the Plugin