I got sick of trying to work with printTable, so I wrote my own display function. It can handle variables of any type including nested tables. It also lets you specify a format to use for number variables. Here's an example of how it looks on an arbitrary complex table:
I haven't put it through industrial-strength testing, so if you notice something strange, it's probably a bug not a feature. Let me know and I'll fix it, or feel free to do it yourself and post an updated version of the package.
I'll add your pretty print display function to the general Lua API in luaGlobal.lua if you don't mind.
Then everybody can use it as a built in function.