Fri, 13 Nov 2009 18:39:17 +0000
Don't highlight table fields if they have the same name as local/global
lua2html... another one. Feel free to suggest a more original name :) This script is the one I use for HTML-ifying my Lua scripts. Its goal isn't full syntax colouring of Lua, but this version has some more useful features. Global variables are highlighted in red, and even stronger when they are being set. Upvalues are highlighted in green. It can also read in coverage reports from my homegrown unit tester. They are in the format: test_sasl.lua|30||true test_sasl.lua|31||miss The first column is the filename, then the line number, and the last column is 'true' (line passed all tests), 'false' (line failed one more tests) or 'miss' to indicate the line wasn't tested. Don't ask what the empty column is, I forgot :) If you have Squish installed ( http://matthewwild.co.uk/projects/squish ) then you can just type 'squish' in the current directory to produce a compressed lua2html file.