WordPress.org

Ready to get started?Download WordPress

Plugin Directory

WP-GeSHi-Highlight -- simple syntax highlighting based on GeSHi

Fast syntax highlighting for many languages. Simple usage. Based on GeSHi (well-established & award-winning PHP highlighter). Valid HTML output.

I) Highlights:

  • Syntax highlighting for many languages.
  • Stability, performance, and security inherited from GeSHi.
  • Optional line numbering. Code-number displacements do not occur. Numbers are not copied in most browsers.
  • Simple usage.
  • Per-block styles: each code block on a single web page can retrieve its own style.
  • Clean, small, valid HTML output.
  • No waste of CPU cycles when there is nothing to highlight.
  • Well-documented source code.

WP-GeSHi-Highlight is a largely rewritten version of WP-Syntax. Compared to WP-Syntax, WP-GeSHi-Highlight

  • creates valid HTML when line numbering is activated (via GeSHi's GESHI_HEADER_PRE_VALID setting).
  • creates less HTML source code.
  • delivers a default style sheet making use of modern CSS properties.
  • has more styling flexibility.
  • has the cleaner source code.
  • makes usage of up-to-date WordPress API calls.

II) Usage: Bear in mind: don't use the visual post editor. Insert code blocks just like this:

<pre lang="languagestring">
    CODE
</pre>

A short example:

<pre lang="bash">
    $ dd if=/dev/zero of=image.ext3 bs=1M count=10000 oflag=append conv=notrunc
</pre>

All available options are listed and explained on the plugin's website.

III) How does it look in action?

Examples can be found on the plugin's homepage.

IV) Issues:

Let me know if you find one: write a mail or leave a comment.

Compatible up to: 3.9
Last Updated: 2014-4-16
Downloads: 8,648

Ratings

4 stars
4.2 out of 5 stars

Support

Got something to say? Need help?

Compatibility

+
=
Not enough data

2 people say it works.
0 people say it's broken.

100,1,1
100,1,1
100,1,1 100,1,1
0,1,0 100,1,1 100,1,1
100,1,1
100,2,2
100,1,1 100,1,1
100,2,2