ICodeShikiOptions
Updated 10 Nov 2026
Defined in: code-shiki/src/code-shiki.ts:34
Configuration options for the Shiki code highlighting plugin.
Extends
Extended by
Properties
blockType?
optional blockType?: "table" | "paragraph"
Defined in: code/src/types.ts:126
Block presentation type when lineNumbers is false:
- "table": renders a padded single-cell table with background shading and border.
- "paragraph": renders as a native shaded Paragraph.
Default
"table"Inherited from
customThemes?
optional customThemes?: Record<string, Partial<ICodeTheme>>
Defined in: code/src/types.ts:88
Additional custom themes catalog mapped by name.
Inherited from
ICodePluginOptions.customThemes
diffHighlight?
optional diffHighlight?: boolean
Defined in: code/src/types.ts:138
Whether to detect and style git diff additions and deletions.
Default
trueInherited from
ICodePluginOptions.diffHighlight
fontFamily?
optional fontFamily?: string
Defined in: code/src/types.ts:112
Monospace font family for code blocks and inline code runs.
Default
"Consolas"Inherited from
fontSize?
optional fontSize?: number
Defined in: code/src/types.ts:118
Font size in half-points (e.g. 19 = 9.5pt, 20 = 10pt, 24 = 12pt).
Default
19Inherited from
gutterStart?
optional gutterStart?: number
Defined in: code/src/types.ts:100
Starting line number for gutter.
Default
1Inherited from
ICodePluginOptions.gutterStart
gutterWidthPercent?
optional gutterWidthPercent?: number
Defined in: code/src/types.ts:106
Width percentage allocated to gutter column when lineNumbers is true. Auto-calculated based on line count if not specified.
Inherited from
ICodePluginOptions.gutterWidthPercent
highlighter?
optional highlighter?: ShikiHighlighter
Defined in: code-shiki/src/code-shiki.ts:39
Pre-configured Shiki highlighter instance. If omitted, a shared singleton highlighter is automatically managed.
highlightInline?
optional highlightInline?: boolean
Defined in: code/src/types.ts:132
Whether to intercept and highlight inlineCode MDAST nodes.
Default
trueInherited from
ICodePluginOptions.highlightInline
langs?
optional langs?: BundledLanguage[]
Defined in: code-shiki/src/code-shiki.ts:50
Additional languages to preload when auto-initializing Shiki.
lineNumbers?
optional lineNumbers?: boolean
Defined in: code/src/types.ts:94
Whether to display line numbers in a gutter column.
Default
falseInherited from
ICodePluginOptions.lineNumbers
shikiTheme?
optional shikiTheme?: string
Defined in: code-shiki/src/code-shiki.ts:45
Shiki theme identifier to use during tokenization.
Defaults to matching the plugin theme option if string, or "github-light".
tabSize?
optional tabSize?: number
Defined in: code/src/types.ts:144
Number of spaces to replace tab (\t) characters with.
Default
2Inherited from
theme?
optional theme?: PresetThemeName | string & object | ICodeTheme
Defined in: code/src/types.ts:83
Active theme name or custom theme object.
Default
"github-light"Inherited from
tokenizer?
optional tokenizer?: (code, language?) => Token[][]
Defined in: code/src/types.ts:149
Optional custom tokenizer override.
Parameters
code
string
language?
string
Returns
Token[][]