Hits : 1727


I 've tried GeSHi 1.0.8.11 Released 2012-08-19


cd formatters/highlight
mkdir old; mv {css,html,java,pascal,php,sql}.php old/
 
wget -c http://downloads.sourceforge.net/geshi/GeSHi-1.0.8.11.tar.bz2
tar xf GeSHi-1.0.8.11.tar.bz2

and then run the below script:


#!/bin/bash
 
ls -1 geshi/geshi | awk -F. '{print $1}' > names
 
forin `cat names`; do
 
cat > $x.php <<EOF
<?php
include_once('geshi/geshi.php');
\$geshi = new GeSHi(\$text, '$x', 'formatters/highlight/geshi/geshi');
echo "<div class=\"code\">\n";
echo \$geshi->parse_code();
echo "\n</div>\n";
?>
EOF
done

A list of php Geshi & wacko formatters:


4cs
6502acme
6502kickass
6502tasm
68000devpac
abap
actionscript3
actionscript
ada algol68
apache
applescript
apt_sources
asm asp
autoconf
autohotkey
autoit
avisynth
awk bascomavr
bash
basic4gl
bf bibtex
blitzbasic
bnf boo
caddcl
cadlisp
cfdg
cfm chaiscript
cil c_loadrunner
clojure
c_mac
cmake
cobol
coffeescript
c cpp
cpp-qt
csharp
css cuesheet
dcs delphi
diff
div dos
dot d ecmascript
eiffel
email
epc e erlang
euphoria
f1
falcon
fo fortran
freebasic
fsharp
gambas
gdb genero
genie
gettext
glsl
gml gnuplot
go groovy
gwbasic
haskell
hicest
hq9plus
html4strict
html5
icon
idl ini
inno
intercal
io java5
java
javascript
j jquery
kixtart
klonec
klonecpp
latex
lb lisp
llvm
locobasic
logtalk
lolcode
lotusformulas
lotusscript
lscript
lsl2
lua m68k
magiksf
make
mapbasic
matlab
mirc
mmix
modula2
modula3
mpasm
mxml
mysql
newlisp
nsis
oberon2
objc
objeck
ocaml-brief
ocaml
oobas
oracle11
oracle8
oxygene
oz pascal
pcre
perl6
perl
per pf php-brief
php pic16
pike
pixelbender
pli plsql
postgresql
povray
powerbuilder
powershell
proftpd
progress
prolog
properties
providex
purebasic
pycon
python
qbasic
q rails
rebol
reg robotsrebol
reg robots
rpmspec
rsplus
ruby
sas scala
scheme
scilab
sdlbasic
smalltalk
smarty
sql systemverilog
tcl teraterm
text
thinbasic
tsql
typoscript
unicon
uscript
vala
vbnet
vb verilog
vhdl
vim visualfoxpro
visualprolog
whitespace
whois
winbatch
xbasic
xml xorg_conf
xpp yaml
z80
zxbasic