wp-prism

from 0$

wp-prism is a WP Plugin Package from the Open Source WP Plugins range wp-prism brings GitHub-styled code-fencing and prism-powered syntax highlighting to your WordPress installation, written from scratch to be as freaky …


For more information about a tailored WP Plugin Package like wp-prism please contact us directly.

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 of
wp-prism` from the WordPress plugins repository or clone our github repo from 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);
}
`

Download & install the zip archive

The plugin package installer can be downloaded from the WP2E project tab called “code”.

1 – Select the version to download if this option is available otherwise the “latest” version of the main plugin will be used.

2 – After downloading the zip archive install the plugin package installer in you local environment and activate the script from the plugin list.

3 – Under the section “Plugins” of the admin dashboard you should see a new “Dependencies & Licenses” link. Follow the instructions from this panel to finalize the installation of the missing dependencies.

Tips: Use the WP2E panel to add/suggest new dependencies to the local installation. Press F5 in the list of dependencies if the changes are not displayed right away.

Wp-prism

typePlugin
version0.1
descriptionwp-prism brings GitHub-styled code-fencing and prism-powered syntax highlighting to your WordPress installation, written from scratch…