Good to know
How the comparison works
The checker looks for the longest common subsequence of lines: the largest set of lines that appear in both texts in the same order. Everything outside that set is a change. It uses the Myers difference algorithm, the method behind many version-control tools, which finds the shortest list of removals and additions that turns the original into the changed text.
A small example:
Original Changed 1 Opening hours 1 Opening hours 2 Mon to Fri 9-5 2 Mon to Sat 9-5 3 Closed Sundays 3 Closed Sundays
Lines 1 and 3 match, so the result shows line 2 of the original as removed and line 2 of the new version as added. Inside those two lines, Fri is highlighted as removed and Sat as added, and the summary reads "1 line removed, 1 line added."
Word highlights
When a block of lines is replaced, the first removed line is paired with the first added line, the second with the second, and so on. Each pair is compared again piece by piece (words, runs of spaces and single symbols), so even one changed digit stands out.
Options and edge cases
- Ignore whitespace treats any run of spaces or tabs as a single space and ignores spaces at the ends of lines.
- Ignore case treats capital and small letters as the same.
- Windows (CRLF), classic Mac (CR) and Unix (LF) line breaks all count as the same. If only one text ends with a line break, the summary says so.
- Moved text shows as removed in one place and added in another. The checker does not detect moves.
- Two texts with thousands of differences are refused, rather than freezing the page.