The INI file for Lua that ships with PSPad doesn’t include all the Lua library functions so I added them (shamlessly copying from the key file of Crimson Editor).
Here it is:
;PSPad user HighLighter definition file [Settings] Name=Lua HTMLGroup=0 Label=1 FileType=*.lua CommentString=-- SQLComment=1 LuaComment=1 IndentChar= UnIndentChar= TabWidth=2 CaseSensitive=1 SingleQuote=1 DoubleQuote=1 KeyWordChars=_. CodeExplorer=ftUnknown [KeyWords] and= break= do= else= elseif= end= false= for= function= if= in= local= nil= not= or= repeat= return= then= true= until= while= [ReservedWords] _G= _VERSION= assert= collectgarbage= coroutine.create= coroutine.resume= coroutine.status= coroutine.wrap= coroutine.yield= debug.debug= debug.gethook= debug.getinfo= debug.getlocal= debug.getupvalue= debug.sethook= debug.setlocal= debug.setupvalue= debug.traceback= dofile= error= gcinfo= getfenv= getmetatable= io.close= io.flush= io.input= io.lines= io.open= io.output= io.read= io.stderr= io.stdin= io.stdout= io.tmpfile= io.type= io.write= ipairs= loadfile= loadlib= loadstring= math.abs= math.acos= math.asin= math.atan= math.atan2= math.ceil= math.cos= math.def= math.exp= math.floor= math.frexp= math.ldexp= math.log= math.log10= math.max= math.min= math.mod= math.pi= math.pow= math.rad= math.random= math.randomseed= math.sin= math.sqrt= math.tan= next= os.clock= os.date= os.difftime= os.execute= os.exit= os.getenv= os.remove= os.rename= os.setlocale= os.time= os.tmpname= pairs= pcall= print= rawequal= rawget= rawset= require= setfenv= setmetatable= string.byte= string.char= string.dump= string.find= string.format= string.gsub= string.len= string.lower= string.rep= string.sub= string.upper= table.concat= table.foreach= table.foreachi= table.getn= table.insert= table.remove= table.setn= table.sort= tonumber= tostring= type= unpack= xpcall= [KeyWords2] [KeyWords3]


