Java API for source formatting

Posted by Marty Pitt on Stack Overflow See other posts from Stack Overflow or by Marty Pitt
Published on 2010-04-06T14:14:42Z Indexed on 2010/04/06 14:23 UTC
Read the original article Hit count: 144

Hi

There are several PHP or js code formatting libs out there -- does anyone know if similar libs exist in Java?

Ie., Given a string of code, return a formatted string with syntax colouring etc.

It'd be ideal if it auto detected the language, but I might be pushing my luck there...

© Stack Overflow or respective owner

Related posts about java

Related posts about code-formatting