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

---

Pretražite dodatke

Ovaj dodatak **nije testiran s najnovija 3 glavna izdanja WordPress-a**. Možda se
više ne održava ili se ne podržava i može imati problema sa kompatibilnošću kada
se koristi sa novijim verzijama WordPress-a.

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

# wp-prism

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

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

 * [Detalji](https://bs.wordpress.org/plugins/wp-prism/#description)
 * [Recenzije](https://bs.wordpress.org/plugins/wp-prism/#reviews)
 * [Razvoj](https://bs.wordpress.org/plugins/wp-prism/#developers)

 [Podrška](https://wordpress.org/support/plugin/wp-prism/)

## Opis

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

## Recenzije

Nema recenzija za ovaj dodatak.

## Saradnici i programeri

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

Doprinositelji

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

[Prevedi “wp-prism” na vaš jezik.](https://translate.wordpress.org/projects/wp-plugins/wp-prism)

### Zainteresirani za razvoj?

[Pregledajte kôd](https://plugins.trac.wordpress.org/browser/wp-prism/), pogledajte
[SVN spremište](https://plugins.svn.wordpress.org/wp-prism/)ili se pretplatite na
[dnevnik razvoja](https://plugins.trac.wordpress.org/log/wp-prism/) od [RSS](https://plugins.trac.wordpress.org/log/wp-prism/?limit=100&mode=stop_on_copy&format=rss).

## Meta

 *  Version **0.1**
 *  Last updated **prije 9 godina**
 *  Active installations **Manje od 10**
 *  Language
 * [English (US)](https://wordpress.org/plugins/wp-prism/)
 *  [Napredni pogled](https://bs.wordpress.org/plugins/wp-prism/advanced/)

## Ocjene

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

## Doprinositelji

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

## Podrška

Imate nešto za reći? Trebate pomoć?

 [Pogledaj forum podrške](https://wordpress.org/support/plugin/wp-prism/)