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
Copy file name to clipboardExpand all lines: docs/fields/code.mdx
+7-4Lines changed: 7 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -33,13 +33,16 @@ This field uses the `monaco-react` editor syntax highlighting.
33
33
|**`required`**| Require this field to have a value. |
34
34
|**`admin`**| Admin-specific configuration. See below for [more detail](#admin-config). |
35
35
36
-
*\* An asterisk denotes that a property is required.*
36
+
_\* An asterisk denotes that a property is required._
37
37
38
-
### Admin config
38
+
### Admin Config
39
39
40
-
In addition to the default [field admin config](/docs/fields/overview#admin-config), the Code field type also allows for the customization of a `language` property.
40
+
In addition to the default [field admin config](/docs/fields/overview#admin-config), you can adjust the following properties:
41
41
42
-
The [monaco-react](https://github.com/suren-atoyan/monaco-react) editor supports all of the languages supported by the [monaco-editor](https://github.com/microsoft/monaco-editor). The `language` property can be set to any of the languages listed [here](https://github.com/microsoft/monaco-editor/tree/main/src/basic-languages).
|**`language`**| This property can be set to any language listed [here](https://github.com/microsoft/monaco-editor/tree/main/src/basic-languages). |
45
+
|**`editorOptions`**| Options that can be passed to the monaco editor, [view the full list](https://microsoft.github.io/monaco-editor/api/interfaces/monaco.editor.IDiffEditorConstructionOptions.html). |
|**`editorOptions`**| Options that can be passed to the monaco editor, [view the full list](https://microsoft.github.io/monaco-editor/api/interfaces/monaco.editor.IDiffEditorConstructionOptions.html). |
0 commit comments