A code snippet diff compares two code snippets with character-level precision and syntax highlighting. Unlike plain text diff tools, it highlights exactly which characters within a line changed — not just the whole line — and colors keywords, strings, and comments for the selected programming language.