Note that this Wiki is a work in progress, items may not be updated or may disappear entirely as the pages are updated.
TextPad PAL Syntax Highlighting
From SpacialAudio
For those that use TextPad (http://www.textpad.com) for PAL development, I've whipped up a pal.syn (http://www.flex.com/~fester/pal.syn) to help with syntax highlighting.
In addition to comments, operators and the normal junk we have: reserved words begin - end declarable data types inherent data types and constants procedures constructors destructor's functions properties (not all these are available in pal)
Click here for the pal.syn file -> http://www.flex.com/~fester/pal.syn
Or Here. http://spacialaudio.com/knowledge/attachment.php?attId=74 (retrieved below from archive.org)
; Don't be a dick. Leave this here.
; TextPad syntax file for PAL scripts by FesterHead (pal@festerhead.com)
; Version 1.1 11/22/2003
C=1
[Syntax]
Namespace1 = 6
IgnoreCase = Yes
InitKeyWordChars = A-Za-z_
KeyWordChars = A-Za-z0-9_
PreprocStart =
SyntaxStart =
SyntaxEnd =
BracketChars = {[()]}
OperatorChars = -+*/<>!~%^&|=:
CommentStart = {
CommentEnd = }
CommentStartAlt =
CommentEndAlt =
SingleComment = //
SingleCommentCol =
SingleCommentAlt =
SingleCommentColAlt =
StringsSpanLines = No
StringStart = '
StringEnd = '
StringAlt = "
StringEsc = \
CharStart = '
CharEnd = '
CharEsc = \
; reserved words
[Keywords 1]
and
as
case
const
div
do
else
false
for
if
is
mod
not
of
or
repeat
then
to
true
until
var
var
while
xor
; begin - end
[Keywords 2]
begin
end
; declarable data types
[Keywords 3]
array
boolean
datetime
float
integer
string
tcategorytree
tdataset
tdirtree
thashtable
tinsertpos
tintegerhashtable
tlist
tmyclass
tpal
tplayer
tqueue
tqueuelist
trequestpolicy
tselectmethod
tsonginfo
tstack
tstringhasttable
tstringlist
tstrings
ttimeobj
variant
; inherent data types and constants
[Keywords 4]
cat
cursong
decka
deckb
dir
dupaccept
duperror
dupignore
enforcerules
friday
ipbottom
iptop
monday
norules
pal
playlistrules
psplaying
psqueued
psready
queue
requestpolicy
saturday
smlemminglogic
smlrp
smlrpa
smmrp
smmrpa
smpriority
smrandom
smweighted
soundfx
subdir
sunday
t
thursday
tuesday
voicefx
wednesday
; procedures constructors destructors functions properties
; not all these are available in pal
[Keywords 5]
abs
add
adddir
addfile
addlist
addobject
addstrings
addurl
ansicomparestr
ansicomparetext
ansilowercase
ansiuppercase
append
appendstringtofile
arccos
arccosh
arcsin
arcsinh
arctan
arctanh
artistrule
bof
cancel
capacity
categories
changefileext
charat
chdir
choosesong
chr
cleanupglobalvars
clear
commatext
comparestr
comparetext
cos
cosh
cotan
count
create
createdir
curtime
dailylimit
date
datetimetostr
datetostr
dayofweek
decodedate
decodetime
degtorad
delaytime
delete
deletefile
destroy
dircategories
duplicates
duration
eject
enabled
encodedate
encodetime
eof
errordlg
eta
exchange
execsql
exp
extractfiledir
extractfiledrive
extractfileext
extractfilename
extractfilepath
extractrandom
fadetoplay
fadetostop
fileexists
filesearch
filetostr
find
first
floattostr
formatdatetime
frac
get
getcommatext
getcount
getcurrentdir
getcurtime
getduplicates
getduration
getitems
getloop
getmemoryleakwarning
getnames
getobjects
getsonginfo
getsorted
getstatus
getstrings
gettext
gettime
getvalues
getvolume
haskey
haskey
hypot
inc
incmonth
indexof
indexofname
indexofobj
indexofobject
informationdlg
inputbox
insert
insertobject
insertpos
int
inttohex
inttostr
isdelimiter
isempty
isleapyear
items
last
lastdelimiter
length
limit
limitinterval
ln
loadfromfile
loadplaylist
loadscript
loadstringfromfile
lockexecution
log10
log2
logn
loop
lowercase
max
memoryleakwarning
min
minartisttime
minqueuesize
minsongtime
move
name
names
next
nextinqueue
now
objects
okcanceldlg
ord
path
pause
peek
pi
play
pop
pos
post
power
previous
push
put
query
questiondlg
queuebottom
queuesong
queuetop
quotedstr
radtodeg
randg
random
randomint
randomize
randseed
readglobalvar
readglobalvardef
remove
removedir
removekey
renamefile
rescan
round
savestringtofile
savetofile
seek
setcharat
setcommatext
setcurrentdir
setduplicates
setitems
setloop
setmemoryleakwarning
setobjects
setrandseed
setsorted
setstrings
settext
setvalues
setvolume
showmessage
shuffle
sin
sinh
size
songlist
songrule
sort
sorted
sqr
sqrt
status
stop
strings
strtodate
strtodatetime
strtofile
strtofloat
strtofloatdef
strtoint
strtointdef
strtotime
subdir
tan
tanh
text
time
timemask
timetostr
trim
trimleft
trimright
trunc
unlockexecution
uppercase
useghostqueue
values
volume
waitforevent
waitforplaycount
waitforqueue
waitfortime
webtofile
webtostr
write
writeglobalvar
writeln
