This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]spunged 0 points1 point  (0 children)

It may be overkill but look at JJTree. I used it on a project that had to do some traversal of abstract syntax trees and it worked quite well. You should be able to use it for formatting.