Compare Files in Dreamweaver

Comparing files in Dreamweaver (DW) is so useful that it’s a wonder it isn’t already built in. Whether it be for comparing a locally saved file to one on a shared Web server or comparing recently downloaded source code updates to existing application files, finding files differences with the help of a suitable application is far more productive than “eyeballing” the differences. The good news is that while that functionality is not native to Dreamweaver it is rather painless to hand off the work to a third-party application.

On my Mac I was able to configure DW to use TextWrangler (a “must-have” text editor for Mac OS X) with ease. I can’t vouch for the Linux and Windows alternatives, but a little Googling did bring up these free applications:

Once you’ve downloaded and installed your compare application, open your DW Preferences > File Compare category, and enter the location of the application (default TextWrangler location: “Macintosh HD:usr:bin:twdiff“). The full instructions are at Adobe’s Livedocs site.

screenshot of the TextWrangler Find Differences windows Henceforth, comparing local or remote files is as easy as selecting them, right-clicking to bring up the context menu, and then choosing Compare Local Files, Compare with Remote, or Compare Remote Files (depending on the files you selected). The compare application typically shows three panes: one that identifies the location and nature of the differences (seen here at the bottom) and the two other panes that highlight the code differences. Pretty neat, huh?

Of course, if we were all good little programmers, we’d be using a proper revision control system such as Subversion and relying on the integrated diff/compare features. Someday. But until then, if you’re maintaining any sort of simple file backups you can still compare those files from the comfort of your Dreamweaver’s Files screen.

4 Responses to “Compare Files in Dreamweaver”

  1. Lauren McSwain-Starrett commented:

    Just a plug for WinMerge. I tried it on the PC yesterday, and I’ve been pleased so far…this was a MUCH-needed addition to my computer, so thanks Steve!

  2. Well, a good diff tool is a must for serious programming. On unix, one will usually start with “diff” - and will be very frightened :-)
    The best diff support I ever saw is build in IBM’s ClearCase (a commercial revision control tool) software. But btw. there’s also a good (while very old) TK tool availible - it’s tkdiff (just a frontend to diff).

  3. Thanks, I was looking for an article just like this. I already installed WinMerge and it works great. I was considering beyond compare but I didn’t’ want to buy anything! Thanks

  4. I agree, Dreamweaver should just include this feature.

    However, the winMerge program works really well. Simple and does the job.

    Thanks for the suggestion.

    Regards,

Leave a Response

About Us

  • Building the University of Virginia web development community one passionate geek at a time.

Mailing List Sign-up

  • What's going on behind the scenes? Join the beTech mailing list and find out.
  • (listserv)

If you would like to write, present, or otherwise get more involved with beTech, please contact .


RSS feed icon