Fri, 13 Nov 2009 16:35:30 +0000
Make script executable
1 | 1 | lua2html... another one. Feel free to suggest a more original name :) |
2 | ||
3 | This script is the one I use for HTML-ifying my Lua scripts. Its goal isn't full syntax colouring of | |
4 | Lua, but this version has some more useful features. | |
5 | ||
6 | Global variables are highlighted in red, and even stronger when they are being set. Upvalues are highlighted in green. | |
7 | ||
8 | It can also read in coverage reports from my homegrown unit tester. They are in the format: | |
9 | ||
10 | test_sasl.lua|30||true | |
11 | test_sasl.lua|31||miss | |
12 | ||
13 | The first column is the filename, then the line number, and the last column is 'true' (line passed all tests), 'false' | |
14 | (line failed one more tests) or 'miss' to indicate the line wasn't tested. Don't ask what the empty column is, I forgot :) |