Formatting
Text diff is the line comparison for prose, logs, and plain lists. Paste the original, paste the revision in Compare with or choose a second file, and read the unified patch. A minus marks a line that was removed. A plus marks a line that was added. A leading space marks a line that appears in both. The on-screen columns show the same edit: removals struck through on the left, additions on the right.
Nothing is parsed. Two JSON texts are compared character for character, so a different key order is a pile of removed and added lines. That is the reason JSON diff exists beside this page. An empty revision marks every original line removed, which is what a one-line note produces when Compare with is left blank. Give both sides a final newline when you can. The patch then stays a clean hunk without a note about a missing newline at the end of the file.
Original, with a newline after each row: Notebook,12 Pen,4 Compare with: Notebook,12 Pencil,4
@@ -1,2 +1,2 @@ Notebook,12 -Pen,4 +Pencil,4 Removed: Pen,4. Added: Pencil,4. Notebook,12 is unchanged. An empty Compare with on a one-line note marks that single line removed and adds nothing.
The patch names the removed line and the added line, which is the whole answer when two versions of a text differ by one row.
For Notebook,12 / Pen,4 against Notebook,12 / Pencil,4, the patch keeps Notebook,12, marks Pen,4 removed, and marks Pencil,4 added.
The original lines are all removals. A one-line file with a blank revision shows @@ -1,1 +0,0 @@ and a minus in front of that line.
The last line of one side had no final newline. End both pastes with a newline and that note drops off the hunk.
It will not. The text is compared as typed. Sort the keys, or open JSON diff, when order should not count as an edit.
Two sides. A third file is refused. Run a second comparison if you have a third version.