Ask a question to get started
Enter to send•Shift+Enter new line
Widget for displaying a unified diff with syntax highlighting.
EnhancedDiff( self, diff: str, title: str = 'Diff', max_lines: int | None = 100, **kwargs: Any = {} )
Vertical
diff
str
Unified diff string
title
'Diff'
Title to display above the diff
max_lines
int | None
100
Maximum number of diff lines to show
**kwargs
Any
{}
Additional arguments passed to parent
Set border style based on charset mode.
Compose the diff widget layout.