Ask a question to get started
Enter to send•Shift+Enter new line
Yield per-line Static widgets for a unified diff.
Each added/removed line gets a CSS class (.diff-line-added, .diff-line-removed) so background colors are driven by CSS variables and update automatically on theme change.
.diff-line-added
.diff-line-removed
compose_diff_lines( diff: str, max_lines: int | None = 100, ) -> ComposeResult
diff
str
Unified diff string.
max_lines
int | None
100
Maximum number of diff lines to show (None for unlimited).