PluGeSHin

« Visibility Toggling with...   Home   EBNFer »

A Wordpress Plugin for GeSHi

Description

 PluGeSHin is a Wordpress plugin by Peter Ajtai that lets you use the syntax highlighting of  GeSHi through Wordpress shortcodes.

You can download PluGeSHin and read about it over at Wordpress.org.

This page has samples of PluGeSHin in action.

Highlighting with the default language (JS in my case) and default setting for line numbers showing:

[geshi]CODE[/geshi]

Example1

Highlighting PHP without line numbers:

[geshi lang="php" nums="0"]CODE[/geshi]

Example2

Highlighting C++ with line numbers, starting at line 37 and drawing attention to the fourth and 13th lines:

[geshi lang="cpp" start="37" nums="1" highlight="4,13"]CODE[/geshi]

Example3

Opening documentation links in a new tab:

[geshi lang="php" target="_blank"]CODE[/geshi]

Example4