Skip to main content

Module highlight

Module highlight 

Source
Expand description

Whole-file syntax highlighting sliced into per-line styled ranges. Highlighting whole files (not hunks) keeps stateful constructs like multi-line strings correct across hunk boundaries.

Structsยง

Highlighter
StyledRange
Foreground color + style for a byte range of one line.