Not sure where exactly this came from (credits in the source say Written by Peter Odding, 2007年04月04日), but it works. It adds HTML tags to Lua source code using a simple LPEG-based lexer: the highlighting script: http://www.mat.ucsb.edu/projects/luaAV/browser/trunk/buildtool/utilities/html.highlighter.lua the lexer: http://www.mat.ucsb.edu/projects/luaAV/browser/trunk/extra/modules/doc/lexer.lua wes