I tried a number of these but with no real success. Then I hit on the solution: the Eclipse based Lua Development tools.
http://eclipse.org/koneki/ldt/
Download what you need for your version (if you have a 64 bit windows, the 32 bit version doesn't work). Run the .exe (no install required!), then do ctrl+shift+f
, and your code is all pretty printed!