Thanks to atom and chrisboy2000, code has been made available to tokenise and colourise Lua and XML code.
I've put their code into the Introjucer, if you'd like to give it a whirl.
http://www.juce.com/forum/topic/xmltokeniser
http://www.juce.com/forum/topic/lua-tokeniser