Interface: CodeBlockProps

Properties

code

code: string

The code to display

language

optional

language: string

Programming language for syntax highlighting

title

optional

title: string

Optional title shown above the code

lineNumbers

optional

lineNumbers: boolean

Show line numbers

highlightLines

optional

highlightLines: number[]

Line numbers to highlight

children

optional

children: ReactNode

Optional custom content to render instead of the code

Source

ui/components/CodeBlock.tsx


← ArdoPluginOptions | CodeGroupProps →