WordPress plugin intelligence profile

Syntax Highlighter with PrismJS

A syntax highlighter using PrismJs.

WP PlugIndex snapshot

Current directory snapshot

Tested up to WordPress 6.1
Current version0.0.1
WordPress coverageTested up to WordPress 6.1
Minimum stackWP — · PHP —
Directory statusactive
Last directory update9 Nov 20223y ago
Active installationsNewAdoption metric — not a quality score
WordPress.org ratingNo WordPress.org ratings yet
Official packageDirect from WordPress.org

Repository metrics are context, not quality scores. Active installations measure adoption and can strongly reflect a plugin’s age and historical popularity. Ratings, recent updates and “Tested up to” metadata also do not guarantee modern code, error-free operation, security, feature completeness or suitability for a particular site. Why active installs don’t tell the whole story →

WP PlugIndex currently records Syntax Highlighter with PrismJS version 0.0.1 as active, updated 3y ago and tested up to WordPress 6.1.

Overview

About this plugin

A syntax highlighter using PrismJs.

How To Use

Wrap your pre tag as shown below:

[sh_prismjs_pre class="language-py line-numbers match-braces rainbow-braces" data_line="1,4-5,7" escape_html='escape'] <pre> class Implements_Ne: ''' A class which implements the __ne__ method ''' def __ne__( self, other): return False

class Not_Implements_Ne: ''' A class which does not implement the __ne__ method ''' pass </pre> [/sh_prismjs_pre]

  • Replace name in language-NAME, by the name of the language that you wish to highlight. For example if the language is python, language-NAME should become language-py.
  • If you wish line numbers to appear, use line-numbers.
  • If you wish braces to be matched when selected use match-braces.
  • If you wish to have rainbow braces use rainbow-braces.
  • If you wish to highlight lines, you can use data_line, so in the example provided, colorize line 1, and colorize lines from 4 to 5, and colorize line 7.
  • If you wish the content of the pre to be escaped, so for example if it contains html tags that you do not wish to be rendered, you can use escape_html=’escape’

For code tags, they also should be wrapped as follows:

[sh_prismjs_code class="language-html" escape_html='escape']<code>tag: <br/></code>[/sh_prismjs_code]

You must use the language-Name option, and you can use the escape_html option.

WordPress.org metadata

Plugin tags

Topics listed for this plugin in the WordPress.org directory.

  • syntax highlighter
  • prism
Compatibility & maintenance

Compatibility & maintenance

Tested up to WordPress 6.1

Not yet marked as tested with WordPress 7.1. WordPress.org currently lists Tested up to 6.1.

Current WordPress releaseWordPress 7.1
WordPress.org Tested up to6.1
Minimum requirementsWordPress not listed · PHP not listed
Update activity9 Nov 20223y ago

“Tested up to” is directory metadata supplied by the plugin author. WP PlugIndex does not turn an older declaration into a claim that the plugin is incompatible.

Changes recorded by WP PlugIndex

Recent tracked changes

No tracked version or compatibility changes have been recorded by WP PlugIndex yet.

Tracking & source

WP PlugIndex tracks public WordPress.org directory metadata and records selected version, compatibility and availability changes as they are detected.

Plugin watchlist

Watch this plugin

Sign in to your WP PlugIndex account or create a free account. Free accounts can watch up to 5 plugins and see what changed.

Watch limit

Watchlist limit reached

You have reached your current active watch limit.