Skip to content

Commit c8bc04a

Browse files
committed
Refactor README
1 parent dc8b23f commit c8bc04a

File tree

1 file changed

+7
-10
lines changed

1 file changed

+7
-10
lines changed

README.md

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,19 +12,13 @@
1212
npm i highlightjs-lang.js
1313
```
1414

15-
### Bower
16-
17-
```bash
18-
bower install highlightjs-lang
19-
```
20-
2115
#### Getting the library from CDN
2216

2317
```html
24-
<script src="//cdn.jsdelivr.net/npm/highlightjs-lang.js@1.1.0/dist/highlightjs-lang.min.js"></script>
18+
<script src="https://cdn.jsdelivr.net/npm/highlightjs-lang.js@latest/dist/highlightjs-lang.min.js"></script>
2519
```
2620

27-
highlightjs-lang.js 1.1.0 is known to work with highlight.js 11.3.1.
21+
highlightjs-lang.js 1.1.0 is known to work with highlight.js 11.3.1+
2822

2923
## Usage
3024

@@ -33,6 +27,7 @@ Download plugin and include file after highlight.js:
3327
```html
3428
<script src="path/to/highlight.min.js"></script>
3529

30+
<!-- Load plugin: -->
3631
<script src="path/to/highlightjs-lang.min.js"></script>
3732
```
3833

@@ -57,7 +52,7 @@ Initialize plugin after highlight.js:
5752
```js
5853
hljs.highlightAll();
5954

60-
hljs.initLangOnLoad();
55+
hljs.initLangOnLoad(); // <-- init plugin
6156
```
6257

6358
Here’s an equivalent way to calling `initLangBlock` using jQuery:
@@ -99,9 +94,11 @@ If you want to override the default language name, you can specify a _overridden
9994

10095
```js
10196
var myOptions = {
97+
// ...
10298
overrideNames: {
10399
cs: 'C#',
104-
}
100+
},
101+
// ...
105102
};
106103
```
107104

0 commit comments

Comments
 (0)