We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 830f40c commit 7858e89Copy full SHA for 7858e89
src/README.md
@@ -20,15 +20,15 @@ conduct](http://contributor-covenant.org/version/1/1/0/) that applies
20
to communication around the project.
21
22
# Usage
23
-```bash
24
-npm install @codemirror/theme-one-dark
25
-```
26
27
-```js
28
-import { oneDark } from '@codemirror/theme-one-dark'
+```javascript
+import {EditorView, basicSetup} from "codemirror"
+import {oneDark} from "@codemirror/theme-one-dark"
29
30
const editor = new EditorView({
31
- extensions: [oneDark]
+ parent: document.body,
+ doc: "One Dark Theme",
+ extensions: [basicSetup, oneDark]
32
})
33
```
34
0 commit comments