The Allegro Wiki is migrating to github at https://github.com/liballeg/allegro_wiki/wiki

Syntax highlighting

From Allegro Wiki
Jump to: navigation, search

Usage

Inline Highlighting

PHP Code

<highlightSyntax>
<?
print("This is my PHP Code.");
?>
</highlightSyntax>

Code in a specific language

<highlightSyntax language="sqlnew">
SELECT * FROM [myTable] 
WHERE Field1 = 1 AND Field2 > 50
ORDER BY [date]
</highlightSyntax>

Highlight a file on your local server

<highlightSyntax serverFile="myLocalPHPFile.php"></highlightSyntax>

or

<highlightSyntax serverFile="myLocalFile.xml" language="xml"></highlightSyntax>

Highlight a remote file

<highlightSyntax remoteFile="http://www.someserver.com/myLocalPHPFile.php"></highlightSyntax>

Supported Languages

4dos4nt
4gl
6502
6809
abb
acl
acpi
ada95
adsp2181
ahdl
alphascript
aml
ampl
amtrix
ansys
apdl
arm
asm167
asm2106
asm21xx
asm515c
asm6502
asm68hc11
asm68Hc908
asm75
asm8051
asmavr
asmdsp56k
asmf240
asmh8s
asmmpc860
asmrds500
asms370
asm
asmz80
aspjscript
aspvbhtml
aspvb
aspvbscript
autolisp
avenue
awk
baan3
baanc
baanerp
bash
batch
bibtex
bkm
bkshell
bm
c167complink
caopenroad401
carealizer20
cbuild
cf45
cfm45
clarion
clariontemplate
clearbasic
clipper
clips
cobol
coldfusion431
config
conv
corba
c
cppheader
cpp
cppsource
csharp
css
cuesheet
c-winapi
dataflex
db4web
dbc
dcal
delphi
dibol
directives
dosbatch
dsp5600
dtd
dxl
eiffel
epld
escript
esprit
euphoria
express
fame
fas
flagship
flisp
focus
fortran90
foxpro26
foxpro6
foxpro
framescript
gdl
ged2html
gedcom
hamster
hartddl
haskell
html
htmlphpsql
hugo
i4gl
ibis
ibmnetdata
ib
idl
inform6
inform
ini
installshield
jasmin
java122
javascript
javascript-wmls
javaswing
javatimeiq
jg
jhtml
jscript
jsp
kixtart
latex
ldap
ldif
lingo
linker
lisp
logic
lotusscript
lpc
lumonics
makefile
mapbasic
map
masm
mason
mathml
matlab5
maxscript
maya
me10macro
mfl
microchp
millg
mincdsl
miva
mixedphp
modula2
modula
motivemaps
msgbuilder
mssql7
mudmaster
mumps
mysql
nc
netcdf
neuronc
nfl
nt
ocaml
oemsetup
omnimark
openroad
opl
palmrsc
paradox
pascal
passport
patrol
pbasic
pearl
peoplesoftsqr
perl
php3
phphtml
pl1
pli
plm
plsql
postscript
powerbuilder7
progress83
providex
python
qbasic
quake
realpix
realtext
rebol
rexx
rmanint
rmanshader
rtf
sacs4
sap
sas
scenix
schema
scheme
SearchScript
sgml
smil
s
spin
sqlnew
sqr
sybase11x
sysedge
systempolicies
tcltk
teradatasql
tsql
turboc
turbopascal
ueconv
uemacro
ugapt
uniface6
uniface71
uniface72
ustnbasic
vbdotnet
vb
vbscript
verify
verilog
VerityStyle
VerityTopics
vhdl
visdialog
vospl1
vrml
vtml
wap
wapscript
wdl
wil
winbatch
winrex
wml
xhtml10
xhtml11
xhtmlbasic
xml
xsl
zmud