Link to home
Start Free TrialLog in
Avatar of tmonteit
tmonteitFlag for Afghanistan

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?
Avatar of wesly_chen
wesly_chen
Flag of United States of America image

Avatar of Aaron Tomosky
Notepad++ has some tidy functions. They work great for XML and HTML. Never tried on js.
ASKER CERTIFIED SOLUTION
Avatar of Tomarse111
Tomarse111
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial