lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


I have a simple tool for constructing literate Lua programs.
Construct your program and its documentation using your favorite HTML
editor.  Place your Lua code into PRE elements.  The program htmpre,
available at http://www.ccs.neu.edu/home/ramsdell/tools/, extracts the
text in PRE elements.  Add the rule

.SUFFIXES: .lua .html

.html.lua:
	htmlpre $< $@

to your makefile, and you're ready to go.

John