Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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?:

<div>
  <div>
    <div>
    </div>
  </div>
</div>
share|improve this question
    
Come to think of it can any free editor do this if DW cant? –  jdln 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

1 Answer 1

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 help.adobe.com. Specifically Dreamweaver / Optimizing and debugging code.

share|improve this answer

Your Answer

 
discard

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.