Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.