CodeBlockSettings

16 Dec 20251 minute to read

Configures settings related to code block in the editor.

Properties

defaultLanguage string

Specifies the default language to use for syntax highlighting.
This is the language that will be selected by default in the language selector dropdown.

Defaults to ‘plaintext’

languages CodeLanguageModel[]

Specifies the languages available for syntax highlighting.
This is an array of objects, each containing a language value and a label.

Defaults to []