Skip to content

Commit

Permalink
docs(Code): improve documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
Gonzalo Uceda committed Oct 27, 2023
1 parent 4ac9cb6 commit 20c04c0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 +76,9 @@ export const CustomThemed = () => {
## Registering a custom language

The Editor supports custom languages. To use a custom language, the language and its configuration must be registered with the editor using the `registerLanguage` function.
**Please, refrain from directly using monaco editor's `monaco.languages.register` function, as it might side-effect other editors.**

For more a more advanced use case, visit [Custom Language With Validation](#custom-language-with-validation).

See also [Monaco Editor - Custom Languages](https://microsoft.github.io/monaco-editor/monarch.html)
For more a more advanced use case, visit [Custom Language With Validation](#custom-language-with-validation). See also [Monaco Editor - Custom Languages](https://microsoft.github.io/monaco-editor/monarch.html)
and [Monaco Editor - Custom Autocompletion](https://microsoft.github.io/monaco-editor/playground.html#extending-language-services-custom-languages)
for more information regarding language definitions and autocompletion.

Expand Down
5 changes: 2 additions & 3 deletions packages/code/src/components/Editor/stories/Editor.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -70,10 +70,9 @@ return (
## Registering a custom language

The Editor supports custom languages. To use a custom language, the language and its configuration must be registered with the editor using the `registerLanguage` function.
**Please, refrain from directly using monaco editor's `monaco.languages.register` function, as it might side-effect other editors.**

For more a more advanced use case, visit [Custom Language With Validation](#custom-language-with-validation).

See also [Monaco Editor - Custom Languages](https://microsoft.github.io/monaco-editor/monarch.html)
For more a more advanced use case, visit [Custom Language With Validation](#custom-language-with-validation). See also [Monaco Editor - Custom Languages](https://microsoft.github.io/monaco-editor/monarch.html)
and [Monaco Editor - Custom Autocompletion](https://microsoft.github.io/monaco-editor/playground.html#extending-language-services-custom-languages)
for more information regarding language definitions and autocompletion.

Expand Down

0 comments on commit 20c04c0

Please sign in to comment.