Skip to content

Commit

Permalink
Adjust readme usage section style
Browse files Browse the repository at this point in the history
  • Loading branch information
marijnh committed Dec 30, 2024
1 parent 830f40c commit 7858e89
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,15 @@ conduct](http://contributor-covenant.org/version/1/1/0/) that applies
to communication around the project.

# Usage
```bash
npm install @codemirror/theme-one-dark
```

```js
import { oneDark } from '@codemirror/theme-one-dark'
```javascript
import {EditorView, basicSetup} from "codemirror"
import {oneDark} from "@codemirror/theme-one-dark"

const editor = new EditorView({
extensions: [oneDark]
parent: document.body,
doc: "One Dark Theme",
extensions: [basicSetup, oneDark]
})
```

Expand Down

0 comments on commit 7858e89

Please sign in to comment.