GeSHi Code Highlighting Quick Hack
MasterBlaster
Here is how you can quickly add
GeSHi code highlighting to your Wacko installation:
- cd formatters/highlight/
- wget
http://unc.dl.sourceforge.net/sourceforge/geshi/~GeSHi-1.0.7.1.tar.gz
- tar xzvf GeSHi-1.0.7.1.tar.gz
- rm GeSHi-1.0.7.1.tar.gz
- mkdir old; mv {css,html,java,pascal,php,sql}.php old/ Get rid of older support.
- Build a list of names of GeSHi files, I did this with ls geshi/geshi -1 | awk -F. '{print $1}' > names
- You might want to open up names and change html4strict to just html.
- Run the below script in that directory, change as needed.
- You can then do things like %%(perl) %% and it will work more or less as expected.
- This is intended to get you there quickly, you may want to extend this further on your own.