Text comparison

Two panes, both editable. The line diff runs after you open the files and again a short moment after you type. You can copy one changed region to the other side; that is an ordinary edit in the destination, so undo works, and nothing is saved until you save.

Local only. Source files stay on this Mac. DiffMan does not send text to another site to diff it. Saving writes the file you chose, on disk. Why that matters

Two XML files side by side. A block of removed customer data is washed red on the left and linked to a green added block on the right. Line numbers sit on the outer edges. A minimap on the far right shows red and green ticks.
Lines mode on two XML files. The same window has a Semantic switch when the format is JSON, YAML, TOML, XML, INI or properties.

What is marked

The algorithm is Myers, after trimming a common start and end. Whitespace-only differences are ignored by default; the checkbox is in the window. You can change the default for newly opened files in Viewers settings.

Layout

Line numbers sit on the outer edges. A connector in the middle links each changed region. A minimap on the right shows where the edits are. Panes scroll together. You can drag the split and the connector width. Previous and Next Difference, Find, and Go to Line are in the menus.

Syntax colours cover a built-in set of languages and can be turned off. They are display only. They never touch the text or the undo history. Font size and line numbers apply to windows that are already open; the other viewer choices apply to files you open afterwards.

Saving

Nothing is written unless you save. Save writes the pane that has the cursor. Save As and Save All are in the File menu. A pane with unsaved edits shows a dot. Closing, comparing again, choosing another item, and quitting all ask first.

Save changes to a file that was changed on disk. The sheet asks whether to save under another name, compare edits against disk, reload, overwrite, or cancel.

Related views

JSON, YAML, TOML, XML, INI and properties files use this same window, with a Lines / Semantic switch. See semantic comparison. Word, ODT, RTF and PDF extract text into a read-only version of this view, then offer Markup and Pages. See document comparison.