Diff Viewer
Compare text with a side-by-side or inline diff, with syntax highlighting and whitespace ignore.
Original
Modified
Legend
Added
Removed
Modified
Unchanged
Features
- Side-by-side and Inline diff views
- Syntax highlighting
- Whitespace ignore option
- Line number alignment
- Large text support
Common Use Cases
- Comparing two versions of a config file
- Reviewing code snippets before pasting
- Debugging generated output vs expected output
Diffing
A Diff shows the difference between two pieces of text. It highlights added lines (green) and removed lines (red). Git uses diffs extensively to track changes.
Examples
Valid - Simple Change
- color: red;
+ color: blue; Valid - Addition
+ New line added here.Frequently Asked Questions
What does @@ mean?
It is the chunk header, showing the line numbers where the changes occurred in the original and new files.
Why merge conflicts?
When two people change the same lines in a file, Git cannot automatically decide which one to keep.
π‘ Tips
- Use "Ignore Whitespace" if the only changes are indentation fixes.