Skip to content

Commit 8c4fdcc

Browse files
jlmakeswuweiweiwu
authored andcommitted
Update README.md syntax highlighting (#313)
1 parent ec8d4ae commit 8c4fdcc

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,14 @@ yarn add react-split-pane
1919
```
2020

2121
## Example Usage
22-
```html
22+
```jsx
2323
<SplitPane split="vertical" minSize={50} defaultSize={100}>
2424
<div></div>
2525
<div></div>
2626
</SplitPane>
2727
```
2828

29-
```html
29+
```jsx
3030
<SplitPane split="vertical" minSize={50}>
3131
<div></div>
3232
<SplitPane split="horizontal">
@@ -51,7 +51,7 @@ You can also set the size of the pane using the `size` prop. Note that a size se
5151

5252
In this example right pane keeps its width 200px while user is resizing browser window.
5353

54-
```html
54+
```jsx
5555
<SplitPane split="vertical" defaultSize={200} primary="second">
5656
<div></div>
5757
<div></div>
@@ -97,7 +97,7 @@ survive a refresh of your app.
9797
For example, if you are comfortable with the trade-offs of localStorage, you
9898
could do something like the following:
9999

100-
```html
100+
```jsx
101101
<SplitPane split="vertical" minSize={50}
102102
defaultSize={ parseInt(localStorage.getItem('splitPos'), 10) }
103103
onChange={ size => localStorage.setItem('splitPos', size) }>

0 commit comments

Comments
 (0)