Skip to content

comfit.RenderHtmlConfig

Python
RenderHtmlConfig(*, highlighted_lines: list[int] | None = None, rainbow: bool = True, pre_class: str | None = None, class_prefix: str = '', rainbow_colors: int = 0, style: RenderHtmlStyle = RenderHtmlStyle.Class, pre_tag: str = 'pre', line_tag: str = 'span') -> None

Highlighting and HTML options, defaulting to capture classes and rainbow depths.

Attributes:

comfit.RenderHtmlConfig.class_prefix

Python
class_prefix: str

comfit.RenderHtmlConfig.highlighted_lines

Python
highlighted_lines: list[int]

comfit.RenderHtmlConfig.line_tag

Python
line_tag: str

comfit.RenderHtmlConfig.pre_class

Python
pre_class: str | None

comfit.RenderHtmlConfig.pre_tag

Python
pre_tag: str

comfit.RenderHtmlConfig.rainbow

Python
rainbow: bool

comfit.RenderHtmlConfig.rainbow_colors

Python
rainbow_colors: int

comfit.RenderHtmlConfig.style

Python
style: RenderHtmlStyle