comfit.HighlightResult
Owned lines and tokens, independent of document updates or disposal.
Functions:
- render_ansi – Render the snapshot without parsing.
- render_html – Render without parsing. The config can change line emphasis, but not bracket depths.
Attributes:
comfit.HighlightResult.lines
lines: list[Line]
comfit.HighlightResult.render_ansi
render_ansi(theme: str) -> str
Render the snapshot without parsing.
comfit.HighlightResult.render_html
render_html(theme: str, config: RenderHtmlConfig | None = None) -> str
Render without parsing. The config can change line emphasis, but not bracket depths.