Using Dreamweaver and a third party editor
to compare the code of two files
There will be times that you want to see what differences there are between the code of two files. This is how to do it using Dreamweaver and a third party text editor that you will specify in Preferences, an editor that can compare the text from two files. Dreamweaver does not have that capability but provides the means to accomplish it by quickly opening two selected files in the Dreamweaver Files panel in a third party editor that can do the comparison. Here is Adobe's information about the procedure that I have attempted to further elucidate below.
The steps to take
- Install either of the following (there may be other text editors that can be used for file comparisons, I have not tested them; the Adobe site lists TextWrangler, which is no longer supported.
- Notepad++ (for Windows only) - I did not test this, but it is listed at Adobe site.
- BBEdit (for Macs) - click on the Free Download button
- Open Dreamweaver Preferences
- Select the Category: File Compare
- Click the Browse button
- Select the the program you installed (Windows++ or BBEdit)
- On a Mac it will be in the Applications folder
- In Windows it will be in one of the Programs folders.
- In the Files panel in Dreamweaver, select the two files that you want to compare using Ctrl-click (Win) or ⌘-click (Mac).
- Right-click on either one of the two selected files.
- Select Compare Local Files
- The two files ought to open in the selected app.
- BBEdit requires you to then:
- Select both files in the left side column then use the menu.
- Search > Find Differences
- Select the options you want to use
- Click Text Comparison
- Sorry but I did not test Notepad++ and therefore have no specific instructions for using it.
Important note for Mac users
- As of Feb. 18, 2019, The Adobe Dreamweaver site listed TextWrangler (no longer supported) and BBEdit.
- Note that the file path to BBEdit that the Adobe page suggests you insert in Choose application to compare files field does not work. That is because there is no bbdiff at that location, at least not on my iMac (10.14.3). If you are comfortable with Unix commands, you can carefully use Terminal to confirm this and let me know. This is the path suggested, in Unix syntax:
...but the bin directory does not contain bbdiff. Note that there is biff but that is unrelated.
- The BBEdit free version worked for me.
- Below I have selected BBEdit. Note that Macs often use a colon ( : ) to separate drives, directories, and files in paths.
©2019 Dan Vaughan