Skip to content

Commit

Permalink
doc: Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Jun 11, 2023
1 parent 3535076 commit 7d7d5eb
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,11 @@ A simple code editor with syntax highlighting. This library aims to provide a si
$ npm i @uiw/react-textarea-code-editor
```

## Demo & Document

https://uiwjs.github.io/react-textarea-code-editor/


## Usage

[![Open in CodeSandbox](https://img.shields.io/badge/Open%20in-CodeSandbox-blue?logo=codesandbox)](https://codesandbox.io/embed/summer-bush-o3qirc?fontsize=14&hidenavigation=1&theme=dark)
Expand Down Expand Up @@ -58,7 +63,7 @@ function App() {

## Highlight line or character

[![Open in CodeSandbox](https://codesandbox.io/embed/https-github-com-uiwjs-react-textarea-code-editor-issues-151-nsm7qp?fontsize=14&hidenavigation=1&theme=dark)
[![Open in CodeSandbox](https://img.shields.io/badge/Open%20in-CodeSandbox-blue?logo=codesandbox)](https://codesandbox.io/embed/https-github-com-uiwjs-react-textarea-code-editor-issues-151-nsm7qp?fontsize=14&hidenavigation=1&theme=dark)

```jsx
import CodeEditor from '@uiw/react-textarea-code-editor';
Expand Down Expand Up @@ -231,11 +236,8 @@ interface TextareaCodeEditorProps extends React.TextareaHTMLAttributes<HTMLTextA
onKeyDown?: (event: React.KeyboardEvent<HTMLTextAreaElement>) => void | boolean;
}
```
List of supported languages can be found [here](https://github.com/wooorm/refractor#syntaxes)
## Demo
https://uiwjs.github.io/react-textarea-code-editor/
List of supported languages can be found [here](https://github.com/wooorm/refractor#syntaxes)
## Development
Expand Down

0 comments on commit 7d7d5eb

Please sign in to comment.