WP Plugins: WP Syntax

×

This post was originally published in 2010
It may contain stale & outdated information. Or it may have grown more awesome with age, like the author.

I use quite a lot of plugins for this blog – it’s more like an organism really, with plugins as the organs and the core of WordPress as its brain.

This post marks the start of a series I plan documenting the various plugins I use and why I use them.

WP Syntax is one of my favourites, and one I doubt I could live without. It allows one to incorporate syntax-highlighted source code within posts. The effect it produces is very visually appealing, uses no javascript and allows visitors to easily copy from.

Here is an example, taken from the plugin’s own documentation:

<div id="foo">
<?php
  function foo() {
    echo "Hello World!\\n";
  }
?>
</div>

If you ever need or want to include source code in your posts, this plugin is a must!

It uses GeSHi ( Generic Syntax Highlighter ), which as won awards and has support for a ton of languages.

You can install it via the dashboard, or learn more – WP-Syntax

No comments | Trackback