Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Ive inherited some code which has loads of randomly placed spaces and line breaks. With Dreamweaver CS5 is it possible to clean up the code so its nicely indent like this?:

share|improve this question
Come to think of it can any free editor do this if DW cant? – Evans Aug 17 '12 at 16:52
As techie007 says, DW can probably do it itself. If not, arachnophilia and, naturally, emacs come to mind. – terdon Aug 17 '12 at 18:31
up vote 1 down vote accepted

Dreamweaver has code formatting built into it. Check Commands > Clean Up HTML, and/or it may be Commands > Apply Source Formatting. I'm not sure which off-hand as I don't have a copy of CS5 in front of me to check. :)

More information is available in the Help files at Specifically Dreamweaver / Optimizing and debugging code.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .