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
| basic | boolean | Use [basicSetup](https://codemirror.net/docs/ref/#codemirror.basicSetup). |
33
-
| minimal | boolean | Use [miniSetup](https://codemirror.net/docs/ref/#codemirror.minimalSetup). If a `basic` prop is also specified, that setting will take precedence. |
34
-
| dark | boolean | Toggle Darkmode. |
35
-
| placeholder | string | Add placeholder text when blank |
36
-
| wrap | boolean | Line text wrapping. see [lineWrapping](https://codemirror.net/6/docs/ref/#view.EditorView.lineWrapping). |
37
-
| tab | boolean | Enables tab indentation. |
38
-
| theme | { [selector: string]: StyleSpec } | Specify the theme. For example, if you use [@codemirror/theme-one-dark](https://github.com/codemirror/theme-one-dark), import `oneDark` and put it in this prop. |
39
-
| readonly | boolean | Makes the cursor visible or you can drag the text but not edit the value. |
40
-
| disabled | boolean | This is the reversed value of the CodeMirror editable. Similar to `readonly`, but setting this value to true disables dragging. |
41
-
| lang | LanguageSupport | The language you want to have syntax highlighting. see <https://codemirror.net/6/#languages>|
42
-
| phrases | Record<string, string>| Specify here if you want to make the displayed character string multilingual. see <https://codemirror.net/6/examples/translate/>|
43
-
| extensions | Extension[]| Includes enhancements to extend CodeMirror. |
44
-
| linter | LintSource | Set Linter. Enter a linter (eg `esLint([arbitrary rule])` function for `@codemirror/lang-javascript`, `jsonParseLinter()`function for`@codemirror/json`). See the sources for various language libraries for more information. |
45
-
| gutter | boolean | Display 🔴 on the line where there was an error when `linter` was specified. It will not work if `linter` is not specified. |
46
-
| tag | string | HTML tags used in the component. (Default is `div` tag.) |
| basic | boolean | Use [basicSetup](https://codemirror.net/docs/ref/#codemirror.basicSetup). |
33
+
| minimal | boolean | Use [miniSetup](https://codemirror.net/docs/ref/#codemirror.minimalSetup). If a `basic` prop is also specified, that setting will take precedence. |
34
+
| dark | boolean | Toggle Darkmode. |
35
+
| placeholder | string | Add placeholder text when blank |
36
+
| wrap | boolean | Line text wrapping. see [lineWrapping](https://codemirror.net/6/docs/ref/#view.EditorView.lineWrapping). |
37
+
| tab | boolean | Enables tab indentation. |
38
+
| theme | { [selector: string]: StyleSpec } | Specify the theme. For example, if you use [@codemirror/theme-one-dark](https://github.com/codemirror/theme-one-dark), import `oneDark` and put it in this prop. |
39
+
| readonly | boolean | Makes the cursor visible or you can drag the text but not edit the value. |
40
+
| disabled | boolean | This is the reversed value of the CodeMirror editable. Similar to `readonly`, but setting this value to true disables dragging. |
41
+
| lang | LanguageSupport | The language you want to have syntax highlighting. see <https://codemirror.net/6/#languages>|
42
+
| phrases | Record<string, string>| Specify here if you want to make the displayed character string multilingual. see <https://codemirror.net/6/examples/translate/>|
43
+
| extensions | Extension[]| Includes enhancements to extend CodeMirror. |
44
+
| linter | LintSource | Set Linter. Enter a linter (eg `esLint([arbitrary rule])` function for `@codemirror/lang-javascript`, `jsonParseLinter()`function for`@codemirror/json`). See the sources for various language libraries for more information. |
45
+
| linterConfig | Object | see <https://codemirror.net/docs/ref/#lint.linter^config>|
46
+
| gutter | boolean | Display 🔴 on the line where there was an error when `linter` was specified. It will not work if `linter` is not specified. |
47
+
| gutterConfig | Object | see <https://codemirror.net/docs/ref/#lint.lintGutter^config>|
48
+
| tag | string | HTML tags used in the component. (Default is `div` tag.) |
47
49
48
50
⚠ Notice: `lang` and `linter` can also be set together in `extensions`. These are separated for compatibility with previous versions of CodeMirror settings and for typing props.
0 commit comments