# CodeBlockLanguageDefinition

interface

The code block language descriptor. See [`languages`](module_code-block_codeblockconfig-CodeBlockConfig.md#member-languages) to learn more.

```typescript
{
	language: 'javascript',
	label: 'JavaScript'
}
```

[See source](https://github.com/ckeditor/ckeditor5/blob/master/packages/ckeditor5-code-block/src/codeblockconfig.ts#L140)

<a id="properties">

## Properties

<a id="member-class">

### `class?: string`

The CSS class associated with the language. When not specified the `language`

* property is used to create a class prefixed by "language-".

[See source](https://github.com/ckeditor/ckeditor5/blob/master/packages/ckeditor5-code-block/src/codeblockconfig.ts#L157)

<a id="member-label">

### `label: string`

The human–readable label associated with the language and displayed in the UI.

[See source](https://github.com/ckeditor/ckeditor5/blob/master/packages/ckeditor5-code-block/src/codeblockconfig.ts#L151)

<a id="member-language">

### `language: string`

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-").

[See source](https://github.com/ckeditor/ckeditor5/blob/master/packages/ckeditor5-code-block/src/codeblockconfig.ts#L146)

---

Full index of the CKEditor 5 API reference: [llms.txt](llms.txt)
