Title: wp-prism
Author: mqudsi
Published: <strong>January 14, 2018</strong>
Last modified: January 14, 2018

---

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/wp-prism.svg)

# wp-prism

 By [mqudsi](https://profiles.wordpress.org/computerguru/)

[Download](https://downloads.wordpress.org/plugin/wp-prism.zip)

 * [Details](https://wordpress.org/plugins/wp-prism/#description)
 * [Reviews](https://wordpress.org/plugins/wp-prism/#reviews)
 * [Development](https://wordpress.org/plugins/wp-prism/#developers)

 [Support](https://wordpress.org/support/plugin/wp-prism/)

## Description

wp-prism brings GitHub-styled code-fencing and prism-powered syntax highlighting
to your WordPress installation, written from scratch to be as freaky fast as possible.

wp-prism currently supports syntax highlighting for 41 languages and _only loads
the JavaScript and CSS to highlight your syntax when needed._

You can say goodbye to page bloat and long load times, because it makes no sense
to do this any other way.

### What it does

wp-prism does exactly what it says on the box: it takes a code-fenced block of source
code nested in your WordPress pages and posts, like this:

    ```
        `rust
    fn main() {
        println!("Hello, world!");
    }
        `
    ```

And turns into a syntax-highlighted work of art, like this:

    ```
    `rust
    ```

fn main() {
 println!(“Hello, world!”); } `<h3>How to install</h3> Just grab a copy
ofwp-prism\` from the WordPress plugins repository or clone our github repo from
[https://github.com/neosmart/wp-prism](https://github.com/neosmart/wp-prism).

There is no configuration needed.

### Avoiding whitespace mangling

WordPress (well, TinyMCE) loves to mangle whitespace in posts. As such, wp-prism
supports (and recommends) embedding your code fragments in `<pre>` tags if you’re
going to use the visual editor (or will use the visual editor at any point). wp-
prism detects the outer `<pre>` and takes care not to emit a second `<pre>` tag 
in such cases.

To illustrate with an example:

    ```
    <pre>
        `cpp
    void Greet(const char *name)
    {
        printf("Hello %s!\n", name);
    }
        `
    </pre>

    `cpp
    ```

void Greet(const char *name)
 { printf(“Hello %s!\n”, name); } `

## Reviews

There are no reviews for this plugin.

## Contributors & Developers

“wp-prism” is open source software. The following people have contributed to this
plugin.

Contributors

 *   [ mqudsi ](https://profiles.wordpress.org/computerguru/)

[Translate “wp-prism” into your language.](https://translate.wordpress.org/projects/wp-plugins/wp-prism)

### Interested in development?

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

## Meta

 *  Version **0.1**
 *  Last updated **8 years ago**
 *  Active installations **Fewer than 10**
 *  [Advanced View](https://wordpress.org/plugins/wp-prism/advanced/)

## Ratings

No reviews have been submitted yet.

[Your review](https://wordpress.org/support/plugin/wp-prism/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/wp-prism/reviews/)

## Contributors

 *   [ mqudsi ](https://profiles.wordpress.org/computerguru/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/wp-prism/)