Loading...
Compare two blocks of text and see differences highlighted line by line.
It uses a variant of the Myers diff algorithm, the same algorithm behind `git diff`. It finds the shortest edit script (minimum insertions and deletions) to transform one text into another.
Yes, you can switch between line-level diff (best for code) and word-level diff (best for prose and documents where changes are within lines).
Green/added lines are present only in the second text. Red/deleted lines are present only in the first text. Unchanged lines appear in both. Yellow may indicate modified lines (present in both but different).
Yes, it works well for comparing code versions. For best results, use line-level diff with context lines enabled to see surrounding code for each change.