Install the file comparison tool on the same system as Dreamweaver. On Macintosh, install Command line tools from the file comparison tool.
- Dreamweaver User Guide
- Introduction
- Dreamweaver and Creative Cloud
- Dreamweaver workspaces and views
- Set up sites
- About Dreamweaver sites
- Set up a local version of your site
- Connect to a publishing server
- Set up a testing server
- Import and export Dreamweaver site settings
- Bring existing websites from a remote server to your local site root
- Accessibility features in Dreamweaver
- Advanced settings
- Set site preferences for transferring files
- Specify proxy server settings in Dreamweaver
- Synchronize Dreamweaver settings with Creative Cloud
- Using Git in Dreamweaver
- Manage files
- Create and open files
- Manage files and folders
- Getting and putting files to and from your server
- Check in and check out files
- Synchronize files
- Compare files for differences
- Cloak files and folders in your Dreamweaver site
- Enable Design Notes for Dreamweaver sites
- Preventing potential Gatekeeper exploit
- Layout and design
- CSS
- Understand Cascading Style Sheets
- Laying out pages using CSS Designer
- Using CSS preprocessors in Dreamweaver
- How to set CSS Style preferences in Dreamweaver
- Move CSS rules in Dreamweaver
- Convert inline CSS to a CSS rule in Dreamweaver
- Work with div tags
- Apply gradients to background
- Create and edit CSS3 transition effects in Dreamweaver
- Format code
- Page content and assets
- Set page properties
- Set CSS heading properties and CSS link properties
- Work with text
- Find and replace text, tags, and attributes
- DOM panel
- Edit in Live View
- Encoding documents in Dreamweaver
- Select and view elements in the Document window
- Set text properties in the Property inspector
- Spell check a web page
- Using horizontal rules in Dreamweaver
- Add and modify font combinations in Dreamweaver
- Work with assets
- Insert and update dates in Dreamweaver
- Create and manage favorite assets in Dreamweaver
- Insert and edit images in Dreamweaver
- Add media objects
- Adding videos in Dreamweaver
- Insert HTML5 video
- Insert SWF files
- Add audio effects
- Insert HTML5 audio in Dreamweaver
- Work with library items
- Using Arabic and Hebrew text in Dreamweaver
- Linking and navigation
- jQuery widgets and effects
- Coding websites
- About coding in Dreamweaver
- Coding environment in Dreamweaver
- Set coding preferences
- Customize code coloring
- Write and edit code
- Code hinting and code completion
- Collapse and expand code
- Reuse code with snippets
- Lint code
- Optimize code
- Edit code in Design view
- Work with head content for pages
- Insert server-side includes in Dreamweaver
- Using tag libraries in Dreamweaver
- Importing custom tags into Dreamweaver
- Use JavaScript behaviors (general instructions)
- Apply built-in JavaScript behaviors
- About XML and XSLT
- Perform server-side XSL transformations in Dreamweaver
- Performing client-side XSL transformations in Dreamweaver
- Add character entities for XSLT in Dreamweaver
- Format code
- Cross-product workflows
- Installing and using extensions to Dreamweaver
- In-App updates in Dreamweaver
- Insert Microsoft Office documents in Dreamweaver (Windows only)
- Working with Fireworks and Dreamweaver
- Edit content in Dreamweaver sites using Contribute
- Dreamweaver-Business Catalyst integration
- Create personalized email campaigns
- Templates
- About Dreamweaver templates
- Recognizing templates and template-based documents
- Create a Dreamweaver template
- Create editable regions in templates
- Create repeating regions and tables in Dreamweaver
- Use optional regions in templates
- Define editable tag attributes in Dreamweaver
- How to create nested templates in Dreamweaver
- Edit, update, and delete templates
- Export and import xml content in Dreamweaver
- Apply or remove a template from an existing document
- Edit content in Dreamweaver templates
- Syntax rules for template tags in Dreamweaver
- Set highlighting preferences for template regions
- Benefits of using templates in Dreamweaver
- Mobile and multiscreen
- Dynamic sites, pages and web forms
- Understand web applications
- Set up your computer for application development
- Troubleshoot database connections
- Removing connection scripts in Dreamweaver
- Design dynamic pages
- Dynamic content sources overview
- Define sources of dynamic content
- Add dynamic content to pages
- Changing dynamic content in Dreamweaver
- Display database records
- Provide and troubleshoot live data in Dreamweaver
- Add custom server behaviors in Dreamweaver
- Building forms using Dreamweaver
- Use forms to collect information from users
- Create and enable ColdFusion forms in Dreamweaver
- Create web forms
- Enhanced HTML5 support for form elements
- Develop a form using Dreamweaver
- Building applications visually
- Build master and detail pages in Dreamweaver
- Build search and results pages
- Build a record insert page
- Build an update record page in Dreamweaver
- Building record delete pages in Dreamweaver
- Use ASP commands to modify database in Dreamweaver
- Build a registration page
- Build a login page
- Build a page that only authorized users can access
- Securing folders in Coldfusion using Dreamweaver
- Using ColdFusion components in Dreamweaver
- Test, preview, and publish websites
- Troubleshooting
Compare local and remote files, compare files before putting files, and compare files when synchronizing in Dreamweaver.
Compare local and remote files for differences
Dreamweaver can work with file comparison tools (also known as “diff tools”) to compare the code of local and remote versions of the same file, two different remote files, or two different local files. Comparing local and remote versions is useful if you’re working on a file locally and you suspect the copy of the file on the server has been modified by someone else. Without leaving Dreamweaver, you can view and merge the remote changes into your local version before putting the file to the server.
Comparing two local files or two remote files is also useful if you keep previous, renamed versions of your files. If you’ve forgotten the changes made to a file from a previous version, a quick comparison will remind you.
Before you start, you must install a third-party file comparison tool on your system. For more information on file comparison tools, use a web search engine such as Google Search to search for “file comparison” or “diff” tools. Dreamweaver works with most third-party tools.
Specify a comparison tool in Dreamweaver
-
-
In Dreamweaver, open the Preferences dialog box by selecting Edit > Preferences (Windows) or Dreamweaver > Preferences (Macintosh), and then select the File Compare category.
-
Do one of the following:
In Windows, click the Browse button and select the application that compares files.
On the Macintosh, click the Browse button and select the tool or script that launches the file comparison tool from the command line, not the actual comparison tool itself.
Launch tools or scripts are typically located in the /usr/bin or /usr/local/bin folder on your Macintosh. For example, if you want to use FileMerge, browse to /usr/bin and select opendiff, which is the tool that launches FileMerge.
The following table lists common file comparison tools for the Macintosh and the location of their launch tools or scripts on your hard disk:
If you use |
Select the following file |
FileMerge |
/usr/bin/opendiff (or /Developer/usr/bin/opendiff) |
BBEdit |
/usr/local/bin/bbdiff |
TextWrangler |
/usr/local/bin/twdiff |
The usr folder is normally hidden in Finder. However, you can access it with the Browse button in Dreamweaver.
The actual results displayed depends on the diff tool you are using. Check the user manual for your tool to understand how to interpret the results.
Compare two local files
You can compare two files located anywhere on your computer.
-
In the Files panel, Control‑click (Windows) or Command-click (Macintosh) the two files to select them.Huomautus:
To select files outside your defined site, select your local disk from the left pop‑up menu in the Files panel and then select the files.
-
Right-click one of the selected files and select Compare Local Files from the context menu.Huomautus:
If you have a one-button mouse, Control‑click one of the selected files instead.
The file comparison tool starts and compares the two files.
Compare two remote files
You can compare two files located on your remote server. You must define a Dreamweaver site with remote settings before you can accomplish this task.
-
In the Files panel, display the files on the remote server by selecting Remote View from the right pop‑up menu.
-
Control‑click (Windows) or Command-click (Macintosh) the two files to select them
-
Right-click one of the selected files and select Compare Remote Files from the context menu.Huomautus:
If you have a one-button mouse, Control‑click one of the selected files instead.
The file comparison tool starts and compares the two files.
Compare a local file to a remote file
You can compare a local file to a file located on your remote server. To do this, you must first define a Dreamweaver site with remote settings.
-
In the Files panel, right-click a local file and select Compare With Remote from the context menu.Huomautus:
If you have a one-button mouse, Control‑click the local file instead.
The file comparison tool starts and compares the two files.
Compare a remote file to a local file
You can compare a remote file to a local file. You must define a Dreamweaver site with remote settings before accomplishing this task.
-
In the Files panel, display the files on the remote server by selecting Remote View from the right pop‑up menu.
-
Right-click a file in the panel and select Compare with Local from the context menu.Huomautus:
If you have a one-button mouse, Control‑click the file instead.
Compare an open file to a remote file
You can compare a file open in Dreamweaver to its counterpart on the remote server.
-
In the Document window, select File > Compare with Remote.
The file comparison tool starts and compares the two files.
Huomautus:You can also right-click the document tab along the top of the Document window and select Compare with Remote from the context menu.
Compare before putting files
If you edit a file locally and then try to upload it to your remote server, Dreamweaver will notify you if the remote version of the file has changed. You have the option of comparing the two files before you upload the file and overwrite the remote version.
Before you start, you must install a file comparison tool on your system and specify it in Dreamweaver.
-
After editing a file in a Dreamweaver site, put the file (Site > Put) to your remote site.
If the remote version of the file has been modified, you’ll receive a notification with the option of seeing the differences.
-
To view the differences, click the Compare button.
The file comparison tool starts and compares the two files.
If you haven’t specified a file comparison tool, you are prompted to specify one.
-
After you’ve reviewed or merged the changes in the tool, you can proceed with the Put operation or cancel it.
Compare files when synchronizing
You can compare the local versions of your files with the remote versions when you synchronize your site files with Dreamweaver.
Before you start, you must install a file comparison tool on your system and specify it in Dreamweaver.
-
Right-click anywhere in the Files panel and select Synchronize from the context menu.
-
Complete the Synchronize Files dialog box and click Preview.
After you click Preview, the selected files and the actions that will be taken during synchronization are listed.
-
In the list, select each file you want to compare and click the Compare button (the icon with two small pages).Huomautus:
The file must be text-based, such as HTML or ColdFusion files.
Dreamweaver starts the comparison tool, which compares the local and remote versions of each file you selected.