wood burning stoves 2.0*
The moose likes Java in General and the fly likes Code formater lib Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Code formater lib" Watch "Code formater lib" New topic
Author

Code formater lib

Shankar sanjay
Ranch Hand

Joined: Sep 14, 2009
Posts: 117
Hi,

I want to know that is there any lib which will take code as input (input means java code as a file or string, pl/sql code as file or string) and do code formatting.

There are lot of system generated code (java,plsql, java script codes) which need to be formatted. please let me know if any lib or any way to do that

Thanks in advance.
Anayonkar Shivalkar
Bartender

Joined: Dec 08, 2010
Posts: 1502
    
    5

Shankar sanjay wrote:Hi,

I want to know that is there any lib which will take code as input (input means java code as a file or string, pl/sql code as file or string) and do code formatting.

There are lot of system generated code (java,plsql, java script codes) which need to be formatted. please let me know if any lib or any way to do that

Thanks in advance.

You can search on github or sourceforge for Java code formatter, or PL/SQL code formatter etc. There are such tools available.

However, it is quite difficult to find single tool to format different type of code (i.e. Java AND PL/SQL), you might need to work with different tools.

Moreover, if you have access to the code which generates these Java and PL/SQL files, you can make changes in generator's code.

I hope this helps.


Regards,
Anayonkar Shivalkar (SCJP, SCWCD, OCMJD, OCEEJBD)
Shankar sanjay
Ranch Hand

Joined: Sep 14, 2009
Posts: 117
Hi,

thanks for the reply. i am looking now to format plsql code using java program or any other language which can invoke from command line. please let me know if anything you have come across.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Code formater lib
 
Similar Threads
Custom runtime annotation processor
JSP that converts office extensions to pdf and then upload them
dynamically loading a class file from a jar file
how jvm understand that from which point print in newline while coping from file a to b ?
Urgent: Please Help!! Ways to cast String to Resource (org.springframework.core.io.Resource)