Lua To Html |
|
[!] VersionNotice: The source code requires a small change in _VERSION handling to work under Lua 5.1. Some additional changes might be needed for proper 5.1 syntax highlighting.
There is a Lua 4.0 version [1],
and a Lua 5.0 version [2], which is the same file with all the % signs for upvalues deleted.
Here is a sample web listing [3]
Run the Lua 4.0 version like so:
lua -f lua2html.lua x.lua > x.html
and the Lua 5.0 version like this:
lua lua52html.lua x.lua > x.html
This particular Wiki does Lua syntax highlighting with some tricky Perl code. It supports the full Lua 5.1 syntax. You can customize it by modifying the embedded CSS. The standalone lua2html.pl can be found [here].