I came upon [url]codepad.org[/url] the other day, and noticed that you could input LUA code and it would spit it out in the format used in the default init.lua. It also tells you where errors are. It has helped me straighten up the init for many mods so I could easily modify them.
How to:
Go to [url]codepad.org[/url] and make sure "LUA" is selected. Then paste your code and press submit. DONE
Just thought I'd put this out here to help anyone who had this problem.