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

---

Priserĉi kromprogramojn

Tiu ĉi kromprogramo **ne estis testita en la 3 lastaj gravaj eldonoj de WordPress**.
Eble ĝi ne plu estas prizorgata kaj ĝi eble havus kongruajn problemojn en novaj 
versioj de WordPress.

![](https://s.w.org/plugins/geopattern-icon/wp-prism.svg)

# wp-prism

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

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

 * [Detaloj](https://eo.wordpress.org/plugins/wp-prism/#description)
 * [Pritaksoj](https://eo.wordpress.org/plugins/wp-prism/#reviews)
 * [Programado](https://eo.wordpress.org/plugins/wp-prism/#developers)

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

## Priskribo

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); } `

## Pritaksoj

There are no reviews for this plugin.

## Kontribuantoj k. programistoj

“wp-prism” estas liberkoda programo. La sekvaj homoj kontribuis al la kromprogramo.

Kontribuantoj

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

[Traduki “wp-prism” en vian lingvon.](https://translate.wordpress.org/projects/wp-plugins/wp-prism)

### Ĉu interesita en programado?

[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).

## Metadatumoj

 *  Version **0.1**
 *  Last updated **antaŭ 8 jaroj**
 *  Active installations **Fewer than 10**
 *  Language
 * [English (US)](https://wordpress.org/plugins/wp-prism/)
 *  [Altnivela rigardo](https://eo.wordpress.org/plugins/wp-prism/advanced/)

## Pritaksoj

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/)

## Kontribuantoj

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

## Helpo

Got something to say? Need help?

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