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

---

Prohledat pluginy

Plugin **nebyl testován na 3 nejnovějších verzích WordPressu.** Nemusí už být tedy
podporován a u novějších verzí WordPressu může mít problémy s kompatibilitou a může
být nestabilní.

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

# wp-prism

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

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

 * [Podrobnosti](https://cs.wordpress.org/plugins/wp-prism/#description)
 * [Hodnocení](https://cs.wordpress.org/plugins/wp-prism/#reviews)
 * [Vývojáři](https://cs.wordpress.org/plugins/wp-prism/#developers)

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

## Popis

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

## Recenze

Pro tento plugin nejsou žádné recenze.

## Autoři

wp-prism je otevřený software. Následující lidé přispěli k vývoji tohoto pluginu.

Spolupracovníci

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

[Přeložte “wp-prism” do svého jazyka.](https://translate.wordpress.org/projects/wp-plugins/wp-prism)

### Zajímá vás vývoj?

[Prohledejte kód](https://plugins.trac.wordpress.org/browser/wp-prism/), podívejte
se do [SVN repozitáře](https://plugins.svn.wordpress.org/wp-prism/), nebo se přihlaste
k[ odběru protokolu vývoje](https://plugins.trac.wordpress.org/log/wp-prism/) pomocí
[RSS](https://plugins.trac.wordpress.org/log/wp-prism/?limit=100&mode=stop_on_copy&format=rss).

## Meta

 *  Verze **0.1**
 *  Poslední aktualizace **před 9 roky**
 *  Aktivních instalací **Méně než 10**
 *  Jazyk
 * [English (US)](https://wordpress.org/plugins/wp-prism/)
 *  [Podrobnosti](https://cs.wordpress.org/plugins/wp-prism/advanced/)

## Hodnocení

Zatím nebyly zadány žádné recenze.

[Vaše hodnocení](https://wordpress.org/support/plugin/wp-prism/reviews/#new-post)

[Zobrazit všechny recenze](https://wordpress.org/support/plugin/wp-prism/reviews/)

## Spolupracovníci

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

## Podpora

Potřebujete pomoc?

 [Fórum podpory](https://wordpress.org/support/plugin/wp-prism/)