@uiw/codemirror-theme-androidstudio
Advanced tools
Comparing version 4.21.25 to 4.22.0
{ | ||
"name": "@uiw/codemirror-theme-androidstudio", | ||
"version": "4.21.25", | ||
"version": "4.22.0", | ||
"description": "Theme androidstudio for CodeMirror.", | ||
@@ -25,3 +25,3 @@ "homepage": "https://uiwjs.github.io/react-codemirror/#/theme/data/androidstudio", | ||
"dependencies": { | ||
"@uiw/codemirror-themes": "4.21.25" | ||
"@uiw/codemirror-themes": "4.22.0" | ||
}, | ||
@@ -28,0 +28,0 @@ "keywords": [ |
@@ -20,2 +20,15 @@ <!--rehype:ignore:start--> | ||
```js | ||
import { EditorState } from '@codemirror/state'; | ||
import { javascript } from '@codemirror/lang-javascript'; | ||
import { androidstudio } from '@uiw/codemirror-theme-androidstudio'; | ||
const state = EditorState.create({ | ||
doc: 'my source code', | ||
extensions: [androidstudio, javascript({ jsx: true })], | ||
}); | ||
``` | ||
Using in React: | ||
```jsx | ||
@@ -22,0 +35,0 @@ import { tags as t } from '@lezer/highlight'; |
9809
115
+ Added@uiw/codemirror-themes@4.22.0(transitive)
- Removed@uiw/codemirror-themes@4.21.25(transitive)