/wp-prism

Most lightweight, yet most configurable and advanced PrismJS WordPress integration plugin.

Primary LanguagePHPGNU General Public License v3.0GPL-3.0

Prism Code Highlighter

Contributors: nico23 Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=UNDSCARF3ZPBC Tags: prism, prismjs, code, syntax, highlighter, syntax highlighter, code highlighter, highlighter, highlighting, NSA, NSA spying Requires at least: 3.5.0 Tested up to: 4.0 Stable tag: 0.9.5 License: GPLv3 License URI: http://www.gnu.org/licenses/gpl-3.0.html

Most lightweight, yet most configurable and advanced PrismJS WordPress integration plugin. Custom fields display (detached) supported.

Description

Despite two plugins already on wordpress.org I decided to write my own from scratch. The result is a minimalistic but powerful plugin with only ~250 lines of PHP.

  • Supports every possible Prism configuration.
  • Does not load prism on every page, only when needed.
  • Supports automatic detection of prism HTML.
  • Supports displaying code from custom fields with [prism] shortcode.
  • Developers may use the prism handle to enqueue the pre-registered script and style.
  • Has admin editor button for quick shortcode template snippet.
  • Has no options page by design.
  • Read more -> Prism Syntax Highlighter for WordPress

Installation

No idea how.

Frequently Asked Questions

Will the data mining ever end?

What data mining?

More!

K

Screenshots

  1. Demo
  2. Bundled Prism version