tmonteit
asked on
Need some advanced code indentation help
Is anyone aware of a tool or way to reformat entire source code files so that they are readable?
I have some javascript code that is a complete mess. It is completely unreadable and unworkable. There are entire methods and loops that are combined into a single line, inconsistent use of white spaces, no indentation, wrong indentation, and downright confusion.
I'm looking a tool or something that make it readable. Ideally, no matter now bad or ugly will give me a nice clean workable / readable javascript file that conforms to best coding practices?
I'm using vim on cygwin right now, but I'm no expert.
Suggestions?
I have some javascript code that is a complete mess. It is completely unreadable and unworkable. There are entire methods and loops that are combined into a single line, inconsistent use of white spaces, no indentation, wrong indentation, and downright confusion.
I'm looking a tool or something that make it readable. Ideally, no matter now bad or ugly will give me a nice clean workable / readable javascript file that conforms to best coding practices?
I'm using vim on cygwin right now, but I'm no expert.
Suggestions?
Notepad++ has some tidy functions. They work great for XML and HTML. Never tried on js.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
http://www.eclipse.org/downloads/
Doc:
http://www.eclipse.org/documentation/
Get start
http://www.eclipse.org/resources/?category=Getting%20Started