๐ Text Diff Guide
Understand how line-by-line text comparison works
What is Text Diff?
Text diff is the process of comparing two texts and finding differences. Popularized by the Unix diff command, it's essential for code review, version control, and document editing.
How It Works
The LCS (Longest Common Subsequence) algorithm compares texts line by line:
- Added (green): Lines in modified text not in original
- Removed (red): Lines in original not in modified
- Unchanged (gray): Lines identical in both
Usage Scenarios
- Code review: compare PR changes
- Document editing: track revisions
- Config files: diff between environments
- Log analysis: compare two runs
๐ Try text diff
๐ Open Diff Tool