CodeBlockLanguageDefinition
interface
The code block language descriptor. See languages to learn more.
{
language: 'javascript',
label: 'JavaScript'
}
Copy code
Properties
class : string | undefinedmodule:code-block/codeblockconfig~CodeBlockLanguageDefinition#classThe CSS class associated with the language. When not specified the
language- property is used to create a class prefixed by "language-".
label : stringmodule:code-block/codeblockconfig~CodeBlockLanguageDefinition#labelThe human–readable label associated with the language and displayed in the UI.
language : stringmodule:code-block/codeblockconfig~CodeBlockLanguageDefinition#languageThe name of the language that will be stored in the model attribute. Also, when
classis not specified, it will be used to create the CSS class associated with the language (prefixed by "language-").