Prop
Type
Default
Description
Document
CodeDocument
—
The line document model.
Language
ICodeLanguage
—
One of the six supported languages.
ShowLineNumbers
bool
true
Gutter numbers.
FirstLineNumber
int
1
Numbering offset for excerpts.
MaxHeight
float
0
Caps the viewport; the block scrolls internally.
Size
SizeVariant
Small
Type scale of the code.
Inverse
bool
false
Dark code surface on a light page.
GutterMarkers
IReadOnlyList<CodeGutterMarker>
[]
Breakpoints, diff marks, annotations.
Decorations
IReadOnlyList<CodeDecoration>
[]
Ranges highlighted inside the text.
ActiveLine
int?
null
Line to emphasise.
Caption
string?
null
File name or description above the block.
OnCopy
Action?
null
Copy affordance handler.
OnGutterPressed
Action<int>?
null
Gutter click, by line.