blark.html.HighlighterAnnotation

class blark.html.HighlighterAnnotation(name: str, terminal: bool, is_open_tag: bool, other_tag_pos: int)[source]

Bases: object

A single HTML tag annotation which applies to a position range of source code.

Methods

__init__(name, terminal, is_open_tag, ...)

as_string([tag])

Attributes

name

terminal

is_open_tag

other_tag_pos

name: str
terminal: bool
is_open_tag: bool
other_tag_pos: int
as_string(tag: str = 'span') str[source]
__init__(name: str, terminal: bool, is_open_tag: bool, other_tag_pos: int) None