Classes
LexerConfig
2
▼
Configuration for lexer behavior.
LexerConfig
2
▼
Configuration for lexer behavior.
Attributes
| Name | Type | Description |
|---|---|---|
strip_whitespace |
bool
|
If True, strip trailing whitespace from lines. |
tab_size |
int
|
Number of spaces per tab for column calculation. |
FormatConfig
4
▼
Configuration for output formatting.
FormatConfig
4
▼
Configuration for output formatting.
Attributes
| Name | Type | Description |
|---|---|---|
css_class |
str
|
Base CSS class for the code container. |
wrap_code |
bool
|
If True, wrap output in |
class_prefix |
str
|
Prefix for token CSS classes. |
data_language |
str | None
|
Language name for data-language attribute (e.g., 'python'). |
HighlightConfig
5
▼
Combined configuration for syntax highlighting.
HighlightConfig
5
▼
Combined configuration for syntax highlighting.
Attributes
| Name | Type | Description |
|---|---|---|
hl_lines |
frozenset[int]
|
Set of 1-based line numbers to highlight. |
show_linenos |
bool
|
If True, include line numbers in output. |
css_class |
str
|
Base CSS class for the code container. |
lineno_class |
str
|
CSS class for line number elements. |
hl_line_class |
str
|
CSS class for highlighted lines. |