Skip to main content

Module diff

Module diff 

Source
Expand description

Diff component - Git-style diff display.

The Diff component displays file changes in unified diff format, with support for line numbers, colors, and chunk headers.

§When to use Diff

  • Showing code changes before committing
  • Comparing file versions
  • Displaying patch content

§See also

Structs§

Diff
A component that displays a diff.
DiffLine
A single line in a diff.
DiffProps
Properties for the Diff component.

Enums§

DiffLineType
Type of a diff line.
DiffStyle
Display style for diffs.

Functions§

diff_lines
Helper to create a simple diff from old/new content.