Sign in Join
Wiki copytemporary

IDE Window: Diff: what changed

Revision 2 to 3. Removed lines have a minus sign; added lines have a plus sign.

OldNewLine
11## Purpose
22
33The diff tool lets you compare two files (or selected parts from two files). It can create a **diff** in Context format. See:
44
5-[`http://en.wikipedia.org/wiki/Diff#Context_format`](http://en.wikipedia.org/wiki/Diff#Context_format)`.`
5+```text
6+http://en.wikipedia.org/wiki/Diff#Context_format.
7+```
68
79## Limitations
810
911It is not suitable for creating patches for systems like Subversion and Git that need the Unified format. See:
1012
11-[`http://en.wikipedia.org/wiki/Diff#Unified_format`](http://en.wikipedia.org/wiki/Diff#Unified_format)
13+```text
14+http://en.wikipedia.org/wiki/Diff#Unified_format
15+```
1216
1317It 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.
1418
1519## Text1
1620
1721Select 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.
1822
1923## Text2
2024
2125Select 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.
2226
2327## Options
2428
2529- **Case sensitive**: Distinguishes between lowercase and upper-case (capital letter) characters.
2630- **Ignore spaces at start of line**: Ignore any indent when comparing two lines (whether space ' ' or tab characters).
2731- **Ignore differences in line ends**: A unix line ending \#10 is treated as identical to a Windows line ending \#13#10.
2832- **Ignore spaces (newline chars not included)**: Ignore all spaces. 'A B' is the same as 'AB'.
2933- **Ignore if empty lines were added or removed**: Skip empty lines.
3034- **Ignore spaces at end of line**: Ignore trailing spaces when comparing two lines.
3135- **Ignore amount of space characters**: Any number of consecutive spaces is treated as one space.
3236
3337## Close
3438
3539Close this dialog.
3640
3741## Open Diff in Editor
3842
3943Close the dialog and open a new page in the source editor with the diff.
4044
4145## Save diff
4246
4347Opens a file dialog to save the diff to a file.
4448
4549---
4650*From the Free Pascal wiki, page "IDE Window: Diff", as it stood on 2015-07-02 after a change by FTurtle, out of the wiki's dump of 2024-05-26. Copyright stays with the author who wrote it, according to the old wiki's [[Licensing]] page. If you have concerns about this material, [message the admin](/wiki-contact).*

Back to history