Installing source code highlighting. Part 1
To add the source-code highlighting we will use the codefilter module and patch it with the geshi highlighting engine
Installing codefilterCodefilter module formats everything between the <code></code> tags so that everything looks like nicely preformatted source code. Not that much, but we'll fix it with the Geshi coloring a bit later
Intalling codefilter is very strightforward:
1. Download the latest codefilter module (Direct link to the release 4.6.0 from 13/04/2005)
2. Copy it to your site "modules" directory
3. Visit administer->modules and enable the codefilter
4. Go to administer->"input formats" and enable codefilter in at least one input format. I did it in the default "Filtered HTML" only.
That's it, now whenever you create a new post you can surround the source code with the
The resulting post will have a grey background and all the "<" and ">" characters will be displayed correctly
You are welcome to create an account on Symbian Example and try it yourself.
Next step in the web site creation will be enhancing the codefilter module to add the source code highlighting to it.