File tree Expand file tree Collapse file tree 2 files changed +26
-0
lines changed Expand file tree Collapse file tree 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
1919conduct] ( http://contributor-covenant.org/version/1/1/0/ ) that applies
2020to communication around the project.
2121
22+ ## Usage
23+
24+ ``` javascript
25+ import {EditorView , basicSetup } from " codemirror"
26+ import {rust } from " @codemirror/lang-rust"
27+
28+ const view = new EditorView ({
29+ parent: document .body ,
30+ doc: ` println!("Hello World!");` ,
31+ extensions: [basicSetup, rust ()]
32+ })
33+ ```
34+
2235## API Reference
2336
2437<dl >
Original file line number Diff line number Diff line change @@ -19,6 +19,19 @@ we have a [code of
1919conduct] ( http://contributor-covenant.org/version/1/1/0/ ) that applies
2020to communication around the project.
2121
22+ ## Usage
23+
24+ ``` javascript
25+ import {EditorView , basicSetup } from " codemirror"
26+ import {rust } from " @codemirror/lang-rust"
27+
28+ const view = new EditorView ({
29+ parent: document .body ,
30+ doc: ` println!("Hello World!");` ,
31+ extensions: [basicSetup, rust ()]
32+ })
33+ ```
34+
2235## API Reference
2336
2437@rust
You can’t perform that action at this time.
0 commit comments