MCPcopy
hub / github.com/Textualize/rich / _SyntaxHighlightRange

Class _SyntaxHighlightRange

rich/syntax.py:219–229  ·  view source on GitHub ↗

A range to highlight in a Syntax object. `start` and `end` are 2-integers tuples, where the first integer is the line number (starting from 1) and the second integer is the column index (starting from 0).

Source from the content-addressed store, hash-verified

217
218
219class _SyntaxHighlightRange(NamedTuple):
220 """
221 A range to highlight in a Syntax object.
222 `start` and `end` are 2-integers tuples, where the first integer is the line number
223 (starting from 1) and the second integer is the column index (starting from 0).
224 """
225
226 style: StyleType
227 start: SyntaxPosition
228 end: SyntaxPosition
229 style_before: bool = False
230
231
232class PaddingProperty:

Callers 2

stylize_rangeMethod · 0.85

Calls

no outgoing calls

Tested by 1