Source Code syntax highlighting plugin for WordPress (V1.2)
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:
You can see a Living demo at here.
Revision History
- version 1.2 (2007-08-28)
- version 1.1
- Add the ability to strips unwanted tags in your code snippets added by WYSWYG editors.
- version 1.0 initial version
See also
There is another plugin may interest you:Google Code Prettify for wordpress.it’s a javascript syntax highlighter based on Google Code Prettify.
Related posts:
Related posts:
I am very happy I found your site on google. Thanks for the sensible critique. Me and my friend were just preparing to do some research about this. I am glad to see such good information being shared for free out there.
Regards,
Fraze from Jersey City city
[...] i just installed this new plugin and i’m trying it right now. It’s a simple formatting coloring plugin. The file is [...]
[...] blog so much about code, I finally stopped being lazy and got a code highlighter. I’m using: Dean’s Code Highlighter by Dean Lee. It’s very easy to use and support a range of different code syntax such as PHP and [...]
[...] Dean’s Code Highlighter- nice little plugin for some of us geeks who like to show off and tell you how much better we are than rest of you by pulishing tidbits of code. [...]
[...] Dean's Code Highlighter. Выполняет подсветку блоков кода. К этому плагину у [...]
[...] Strona wtyczki [...]
雁过留痕,我过留脚印….
[...] Dean’s Code Highlighter, pour la coloration syntaxique des bouts de code [...]
[...] will authorize plugins like Source Code syntax highlighting plugin for WordPress or WP-CodeBox to work just perfectly [...]
[...] Dean Lee Code Highlighter WordPress Plugin [...]