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
-`viewport-margin`<sup>1</sup> - sets the `viewportMargin` option of the CodeMirrror editor instance (default `10`)
38
39
-`readonly` - sets the codemirror's "readOnly" configuration attribute to true, you may set `readonly="nocursor"` if you want to disable the cursor and not let the user copy the text inside
39
40
40
41
*<sup>1</sup>Setting `viewport-margin` to `infinity` will auto-resize the editor to its contents. To see this in action, check out the [CodeMirror Auto-Resize Demo](https://codemirror.net/demo/resize.html).*
41
42
42
43
### Basic Usage
43
44
44
-
all language modes are dynamically loaded, and the css is dynamically loaded, you don't need to add any additional files for them
45
+
all language modes/themes are dynamically loaded, and the css is dynamically loaded, you don't need to add any additional files for them
0 commit comments