该插件尚未通过WordPress的最新3个主要版本进行测试。 当与较新版本的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
  • Java脚本
  • 菲律宾比索(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.

评价

此插件暂无评价。

贡献者及开发者

“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