Is there any way to Auto-Indent in Dreamweaver CS4?

Posted on 2009-04-22
Last Modified: 2013-12-20
At the following link:

... it is asserted that Dreamweaver CS3's autoindent used to work perfectly, but it's broken in CS4.

Can someone please tell me, Is there any way to autoindent in Dreamweaver CS4?

By using Textpad, a free text editor, I can "clean up" my code by indenting it the way I like.  Then, when I re-open it in Dreamweaver CS4, my line-breaks and tabs are all there, but the word-wrap for a long line still wraps starting at the extreme left-hand edge of the page.

Is this my best solution?  It does seem strange that I have to use a free utility to fix the untidiness created by  Dreamweaver, which cost me hundreds of dollars.

Question by:Dwight Baer
    LVL 14

    Accepted Solution

    Dreamweaver has a menu option, Commands > Apply Source Formatting
    LVL 14

    Expert Comment

    Although it doesn't work for JavaScript code... I'm still using to separately format JavaScript codes.

    Author Closing Comment

    by:Dwight Baer
    thank you!

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    6 Surprising Benefits of Threat Intelligence

    All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

    Suggested Solutions

    Author Note: Since this E-E article was originally written, years ago, formal testing has come into common use in the world of PHP.  PHPUnit ( and similar technologies have enjoyed wide adoption, making it possib…
    Read about why website design really matters in today's demanding market.
    The purpose of this video is to demonstrate how to prevent comment spam on a WordPress Website. This will be demonstrated using a Windows 8 PC. Plugin Akismet will be used. Go to your WordPress login page. This will look like the following: myw…
    This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

    759 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    11 Experts available now in Live!

    Get 1:1 Help Now