Source Code syntax highlighting plugin for WordPress (V1.2)

Posted by YangTx on Nov 25th, 2007 and filed under Software Reviews. You can follow any responses to this entry through the RSS 2.0. You can leave a response or trackback to this entry

Introduction

This WordPress plugin using Geshi to highlight source code in a wide range of popular languages.it aims to be a simple but powerful code highlighting plugin, with the following goals:

  • Easy to use.
  • Support for a wide range of popular languages.
  • Customizable output formats.

Installation

This plugin requires WordPress v.1.5 or later.

  1. Download Dean’s Code Highlighter v1.2  and unzip it.
  2. Upload the plugin to your plugin directory (wp-content/plugins).
  3. Activate the plugin through the ‘Plugins’ menu in WordPress.
  4. Modify the stylesheet file geshi.css to get the coloring you prefer.

usage

Use the “pre” tag and add the programming language you want to use as a parameter. Example:. < pre lang=”php” >your code here … < /pre >. for example: <pre lang=”php”> function hello_world(){ echo “hello world” }</pre> after highlighting:

function hello_world()
{
        echo “hello world”;
}

You can see a Living demo at here.

Tags: WordPress Plugin

Related posts

2 Responses for “Source Code syntax highlighting plugin for WordPress (V1.2)”

  1. gnibil says:

    Maybe this can help you. It’s a nice online source code formatter.It supports almost all of the popular program languages, such as Java, PHP, Ruby, C++ etc. And you can choose the theme you like and embed it into any web you want easily.You can take it a try here
    http://www.codetie.com.

Leave a Reply