Java library for code / format encoding

I need a library for Java that can decorate / format source code from a text view (String, file, etc.).

I have already searched for something like this, but have not found anything that does just that. Only tools that analyze their own tree structures are either IDE plugins or stand-alone applications.

At first, it seems like Jalopy is doing this, but I have not been able to use it due to poor documentation.

Any ideas?

EDIT:

I accidentally found what I was looking for: Eclipse JDT CodeFormatter API.

http://help.eclipse.org/helios/topic/org.eclipse.jdt.doc.isv/guide/jdt_api_codeformatter.htm

+5
source share

All Articles