Versions in this module Expand all Collapse all v0 v0.74.0 Dec 4, 2026 Changes in this version + func Render(line SpanLine, base lipgloss.Style) string + func Sanitize(s string) string + func Width(line SpanLine) int + type SourceLine struct + Number int + Text string + type Span struct + Bold bool + Foreground color.Color + Italic bool + Text string + Underline bool + type SpanLine []Span + func HighlightDiff(path string, oldLines, newLines []SourceLine) (old, new []SpanLine) + func Truncate(line SpanLine, width int) SpanLine + func Wrap(line SpanLine, width int) []SpanLine