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.
- Download Dean’s Code Highlighter v1.2 and unzip it.
- Upload the plugin to your plugin directory (wp-content/plugins).
- Activate the plugin through the ‘Plugins’ menu in WordPress.
- 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.
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.
……