Title: Syntax Highlighter with PrismJS
Author: mohamad wael
Published: <strong>නොවැම්බර් 9, 2022</strong>
Last modified: නොවැම්බර් 9, 2022

---

Search plugins

This plugin **hasn’t been tested with the latest 3 major releases of WordPress**.
It may no longer be maintained or supported and may have compatibility issues when
used with more recent versions of WordPress.

![](https://s.w.org/plugins/geopattern-icon/syntax-highlighter-prismjs.svg)

# Syntax Highlighter with PrismJS

 By [mohamad wael](https://profiles.wordpress.org/mwaelk/)

[Download](https://downloads.wordpress.org/plugin/syntax-highlighter-prismjs.0.0.1.zip)

 * [Details](https://si.wordpress.org/plugins/syntax-highlighter-prismjs/#description)
 * [Reviews](https://si.wordpress.org/plugins/syntax-highlighter-prismjs/#reviews)
 * [Development](https://si.wordpress.org/plugins/syntax-highlighter-prismjs/#developers)

 [Support](https://wordpress.org/support/plugin/syntax-highlighter-prismjs/)

## Description

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.

## Reviews

There are no reviews for this plugin.

## Contributors & Developers

“Syntax Highlighter with PrismJS” is open source software. The following people 
have contributed to this plugin.

Contributors

 *   [ mohamad wael ](https://profiles.wordpress.org/mwaelk/)

[Translate “Syntax Highlighter with PrismJS” into your language.](https://translate.wordpress.org/projects/wp-plugins/syntax-highlighter-prismjs)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/syntax-highlighter-prismjs/),
check out the [SVN repository](https://plugins.svn.wordpress.org/syntax-highlighter-prismjs/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/syntax-highlighter-prismjs/)
by [RSS](https://plugins.trac.wordpress.org/log/syntax-highlighter-prismjs/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 0.0.1

 * initial release.

## Meta

 *  Version **0.0.1**
 *  Last updated **වසර 4ක් ago**
 *  Active installations **Fewer than 10**
 *  Tested up to **6.1.10**
 *  Language
 * [English (US)](https://wordpress.org/plugins/syntax-highlighter-prismjs/)
 * Tags
 * [highlighter](https://si.wordpress.org/plugins/tags/highlighter/)[prism](https://si.wordpress.org/plugins/tags/prism/)
   [syntax highlighter](https://si.wordpress.org/plugins/tags/syntax-highlighter/)
 *  [Advanced View](https://si.wordpress.org/plugins/syntax-highlighter-prismjs/advanced/)

## Ratings

No reviews have been submitted yet.

[Your review](https://wordpress.org/support/plugin/syntax-highlighter-prismjs/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/syntax-highlighter-prismjs/reviews/)

## Contributors

 *   [ mohamad wael ](https://profiles.wordpress.org/mwaelk/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/syntax-highlighter-prismjs/)

## Donate

Would you like to support the advancement of this plugin?

 [ Donate to this plugin ](https://www.paypal.com/donate?hosted_button_id=QHHP2H5JN358N)