Commit b994686 1 parent 1d8e74b commit b994686 Copy full SHA for b994686
File tree 2 files changed +26
-0
lines changed
2 files changed +26
-0
lines changed Original file line number Diff line number Diff line change @@ -19,6 +19,19 @@ we have a [code of
19
19
conduct] ( http://contributor-covenant.org/version/1/1/0/ ) that applies
20
20
to communication around the project.
21
21
22
+ ## Usage
23
+
24
+ ``` javascript
25
+ import {EditorView , basicSetup } from " codemirror"
26
+ import {javascript } from " @codemirror/lang-javascript"
27
+
28
+ const view = new EditorView ({
29
+ parent: document .body ,
30
+ doc: ` console.log("Hello world")` ,
31
+ extensions: [basicSetup, javascript ()]
32
+ })
33
+ ```
34
+
22
35
## API Reference
23
36
24
37
<dl >
Original file line number Diff line number Diff line change @@ -19,6 +19,19 @@ we have a [code of
19
19
conduct] ( http://contributor-covenant.org/version/1/1/0/ ) that applies
20
20
to communication around the project.
21
21
22
+ ## Usage
23
+
24
+ ``` javascript
25
+ import {EditorView , basicSetup } from " codemirror"
26
+ import {javascript } from " @codemirror/lang-javascript"
27
+
28
+ const view = new EditorView ({
29
+ parent: document .body ,
30
+ doc: ` console.log("Hello world")` ,
31
+ extensions: [basicSetup, javascript ()]
32
+ })
33
+ ```
34
+
22
35
## API Reference
23
36
24
37
@javascript
You can’t perform that action at this time.
0 commit comments