DevelopmentAlso called: "file diff", "text comparison", "patch"
Diff tools highlight what changed between text versions for review and merging.
Diff formats
- Unified diff: +/- lines with context (Git default).
- Context diff: Before/after sections with ! markers.
- Side-by-side: Two-column comparison.
- Inline/word diff: Character-level changes within lines.
Common diff notation
- Lines starting with - (removed).
- Lines starting with + (added).
- Lines starting with @ (chunk headers).
- Unchanged lines for context.
Use cases
- Code review in pull requests.
- Document version comparison.
- Configuration file changes.
- Merge conflict resolution.
- Backup verification.
Tools
- Git diff, diff command (Unix).
- IDE built-in comparison.
- Online diff checkers.
- Merge tools (Beyond Compare, Meld).
Advanced features
- Ignore whitespace changes.
- Word/character-level granularity.
- Three-way merge (base, theirs, yours).
- Syntax-aware diffing (for code).
Explore More Development
View all termsCron Expression
A time-based job scheduling syntax using five or six fields to specify when tasks should run.
Read more →Diff Algorithm
A computational method for comparing two sets of data and identifying differences between them.
Read more →JSON (JavaScript Object Notation)
A lightweight data interchange format using human-readable text to represent structured data.
Read more →Markdown
A lightweight markup language that uses plain text formatting to create structured documents.
Read more →Regular Expressions (Regex)
Pattern-matching syntax used to search, validate, and manipulate text based on rules.
Read more →Universally Unique Identifier (UUID)
A 128-bit identifier guaranteed to be unique across space and time without central coordination.
Read more →