You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jun 26, 2020. It is now read-only.
It is possible to configure which languages are available to the users. You can use the {@link module:code-block/codeblock~CodeBlockConfig#languages `codeBlock.languages`} configuration and define your own languages. For example, the following editor supports only two languages (CSS and XML/HTML):
27
+
It is possible to configure which languages are available to the users. You can use the {@link module:code-block/codeblock~CodeBlockConfig#languages `codeBlock.languages`} configuration and define your own languages. For example, the following editor supports only two languages (CSS and HTML):
28
28
29
29
```js
30
30
ClassicEditor
31
31
.create( document.querySelector( '#editor' ), {
32
32
codeBlock: {
33
33
languages: [
34
34
{ language:'css', label:'CSS' },
35
-
{ language:'xml', label:'HTML/XML' }
35
+
{ language:'html', label:'HTML' }
36
36
]
37
37
}
38
38
} )
@@ -166,13 +166,14 @@ The {@link module:code-block/codeblock~CodeBlock} plugin registers:
0 commit comments