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