Prismatic

Description

Brand new plugin with all-new shiny code fresh from the WP API!

The only 3-in-1 syntax highlighter!

Display beautiful code snippets with Prism.js, Highlight.js, or plain code escaping:

  • Prism.js – Code escape + syntax highlight using Prism.js
  • Highlight.js – Code escape + syntax highlight using Highlight.js
  • Plain Flavor – Code escape without syntax highlight (for custom styles)

Prism.js Features

  • Supports over 30 coding languages
  • Choose from all 7 available Prism themes
  • Enable Prism plugin Line Numbers
  • Enable Prism plugin Line Highlight
  • Enable Prism plugin Show Language
  • Highlights code in post content, excerpts, and comments
  • Detects language- and lang- class prefixes
  • Limit syntax highlighting to Posts and Pages
  • Highlight single-line and multi-line code
  • Granular control over code escaping
  • Smart loading of CSS & JS assets

Highlight.js Features

  • Supports 23 coding languages
  • Choose from all 77 available Highlight themes
  • Customize the Highlight.js init JavaScript
  • Highlights code in post content, excerpts, and comments
  • Limit syntax highlighting to Posts and Pages
  • Highlight multi-line blocks of code
  • Detects language- and lang- class prefixes
  • Enable support for no-prefix class names
  • Granular control over code escaping
  • Smart loading of CSS & JS assets

Plain Flavor Features

  • Enable code escaping for post content, excerpts, and/or comments
  • Enable code escaping on the frontend, Admin Area, or both
  • Escapes single-line and multi-line code snippets

General Features

  • Easy to set up & configure
  • Built with the WordPress API
  • Squeaky clean, error-free code
  • Born of simplicity, no frills
  • Lightweight, fast and flexible
  • Focused on performance and security
  • Loads CSS/JS assets only when required
  • Adheres to HTML coding best practices

Prismatic escapes only the essentials to keep your code clean.

Check out the screenshots for more details!

Support development of this plugin

I develop and maintain this free plugin with love for the WordPress community. To show support, you can make a cash donation, bitcoin donation, or purchase one of my books:

And/or purchase one of my premium WordPress plugins:

  • BBQ Pro – Pro version of Block Bad Queries
  • SES Pro – Super-simple & flexible email signup forms
  • USP Pro – Pro version of User Submitted Posts

Links, tweets and likes also appreciated. Thank you! 🙂

Screenshots

  • Prismatic General Settings
  • Prismatic Prism.js Settings
  • Prismatic Highlight.js Settings
  • Prismatic Plain Flavor Settings
  • Prism.js : Twilight theme (choose from 7 Prism.js themes!)
  • Highlight.js : Arduino Light theme (choose from 77 Highlight.js themes!)
  • Highlight.js : Gruvbox Dark theme (choose from 77 Highlight.js themes!)
  • Cleanly escaped code without syntax highlighting (Plain Flavor)

FAQ

Can you add another language for Prism.js or Highlight.js?

Yes, feel free to suggest a language

Got a question?

Send any questions or feedback via my contact form

Reviews

Read all 1 review

Changelog

1.2 (2016/11/16)

  • Adds support for AppleScript in Highlight.js
  • Updates plugin URL in core files and readme.txt
  • Changes stable tag from trunk to latest version
  • Adds » to rate this link on Plugins screen
  • Adds strong tags to admin notices on settings page
  • Refines styles for popup dialog on settings page
  • Tests on WordPress version 4.7 (beta)

1.1 (2016/10/24)

  • Updates/adds some links
  • Updates default language file
  • Tests on WordPress version 4.7 (alpha)

1.0 (2016/10/21)

  • Initial release

Contributors & Developers

This is open source software. The following people have contributed to this plugin.

Contributors

Browse the code