Skip to content

Commit 5480b8b

Browse files
committed
Use javascript code block highlighting in README
1 parent 018848c commit 5480b8b

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ npm start
3131
Function to creates an empty EditorState leveraging the decorators of the provided plugins.
3232

3333
Usage:
34-
```
34+
```js
3535
import { createEmpty } from 'draft-js-plugin-editor';
3636

3737
const editorState = createEmpty(plugins);
@@ -42,7 +42,7 @@ const editorState = createEmpty(plugins);
4242
Function to creates an EditorState with some text.
4343

4444
Usage:
45-
```
45+
```js
4646
import { createWithText } from 'draft-js-plugin-editor';
4747

4848
const editorState = createWithText('Hello World!', plugins);
@@ -53,7 +53,7 @@ const editorState = createWithText('Hello World!', plugins);
5353
Function to creates an EditorState with provided pre-used data.
5454

5555
Usage:
56-
```
56+
```js
5757
import { createWithContent } from 'draft-js-plugin-editor';
5858

5959
const editorState = createWithContent(content, plugins);
@@ -71,7 +71,7 @@ An editor component accepting plugins.
7171
| all other props accepted by the DraftJS Editor | [see here](https://facebook.github.io/draft-js/docs/api-reference-editor.html#props) | |
7272

7373
Usage:
74-
```
74+
```js
7575
import React, { Component } from 'react';
7676
import Editor, { createEmpty } from 'draft-js-plugin-editor';
7777
import hashtagPlugin from 'draft-js-hashtag-plugin';
@@ -119,7 +119,7 @@ The Sticker Plugin allows users to place ContentBlocks of the type `sticker`.
119119

120120
Usage:
121121

122-
```
122+
```js
123123
import stickerPlugin from 'draft-js-sticker-plugin';
124124

125125
const stickerPluginInstance = stickerPlugin({ stickers });
@@ -139,7 +139,7 @@ const { StickerSelect } = stickerPluginInstance;
139139

140140
The Hashtag Plugin allows users to write Hashtags which are styled in a different color.
141141

142-
```
142+
```js
143143
import hashtagPlugin from 'draft-js-hashtag-plugin';
144144

145145
const hashtagPluginInstance = hashtagPlugin();
@@ -149,7 +149,7 @@ const hashtagPluginInstance = hashtagPlugin();
149149

150150
The Linkify Plugin wraps every link in an Anchor-Tag which then is clickable in the `readOnly` mode.
151151

152-
```
152+
```js
153153
import linkifyPlugin from 'draft-js-linkify-plugin';
154154

155155
const linkifyPluginInstance = linkifyPlugin();

0 commit comments

Comments
 (0)