Lua To Html

lua-users home
wiki

Showing revision 6
This script converts Lua source files 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].


RecentChanges · preferences
edit · history · current revision
Edited January 2, 2007 4:06 pm GMT (diff)