Add formatText method to TextField.
Fix indentation.
Merge pull request #268 from johnfn/master

Allow custom formatting for TextField