Google Syntax Highlighter for WordPress

August 14, 2007

Google Syntax Highlighter for WordPress Plugin

This plugin makes using the Google Syntax highlighter by Alex Gorbatchev to highlight code snippets within WordPress simple.

This plugin easily integrates the Google Syntax Highlighter by Alex Gorbatchev into WordPress.

Feature summary

  • 100% client side, no server dependency
  • Multiple languages support
  • Wide browser support
  • Very lightweight

Languages Supported

  • C++ (cpp, c, c++)
  • C# (c#, c-sharp, csharp)
  • CSS (css)
  • Delphi (delphi, pascal)
  • Java (java)
  • Java Script (js, jscript, javascript)
  • PHP (php)
  • Python (py, python)
  • Ruby (rb, ruby, rails, ror)
  • Sql (sql)
  • VB (vb, vb.net)
  • XML/HTML (xml, html, xhtml, xslt)

Installation

  1. Extract plugin into /wp-content/plugins directory.
  2. Activate the plugin.
  3. Specify your code snippets in your blog post using the Usage Directions provided by the Google Syntax highlighter.

Here is an example to produce ruby syntax highlighting once the plugin is activated:

<pre name="code" class"ruby"> def my_ruby_snippet blog_post.should(be_highlighted) end </pre> 

Screenshots

  1. Simple Ruby Example

    Simple Ruby Example

Details

  • Version: 1.5.1
  • Active installations: 200
  • WordPress Version: 2.0.0
  • Tested up to: 2.2.2

Ratings


5 Stars
4 Stars
3 Stars
2 Stars
1 Stars