Skip to content

Commit 72bacc6

Browse files
committed
Add usage section and a link to the demo page
1 parent fa0dbeb commit 72bacc6

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,20 @@ Lambda Calculus mode for CodeMirror.
44

55
- `defineMode(CodeMirror)`: Define `lambdacalc` mode and MIME `text/x-lambdacalc`
66

7+
## Usage
8+
9+
```javascript
10+
import CodeMirror from "codemirror";
11+
12+
import { defineMode } from "@codewars/codemirror-lambda-calculus";
13+
14+
defineMode(CodeMirror);
15+
```
16+
17+
## Demo
18+
19+
See https://codewars.github.io/codemirror-lambda-calculus/
20+
721
## Development
822

923
Run `npm run dev` to start a local dev server.

0 commit comments

Comments
 (0)