Purpose
editThe diff tool lets you compare two files (or selected parts from two files). It can create a diff in Context format. See:
http://en.wikipedia.org/wiki/Diff#Context_format.
Limitations
editIt is not suitable for creating patches for systems like Subversion and Git that need the Unified format. See:
http://en.wikipedia.org/wiki/Diff#Unified_format
It performs a line-based comparison (not a word- or paragraph-based) comparison, so it only works for text files (including source code), not binary files.
Text1
editSelect the first file in the comparison. If any portion of text is selected within the file, then only this selected part of the text will be compared.
Text2
editSelect the second file in the comparison. If any portion of text is selected within the file, then only this selected part of the text will be compared.
Options
edit- Case sensitive: Distinguishes between lowercase and upper-case (capital letter) characters.
- Ignore spaces at start of line: Ignore any indent when comparing two lines (whether space ' ' or tab characters).
- Ignore differences in line ends: A unix line ending #10 is treated as identical to a Windows line ending #13#10.
- Ignore spaces (newline chars not included): Ignore all spaces. 'A B' is the same as 'AB'.
- Ignore if empty lines were added or removed: Skip empty lines.
- Ignore spaces at end of line: Ignore trailing spaces when comparing two lines.
- Ignore amount of space characters: Any number of consecutive spaces is treated as one space.
Close
editClose this dialog.
Open Diff in Editor
editClose the dialog and open a new page in the source editor with the diff.
Save diff
editOpens a file dialog to save the diff to a file.