File tree Expand file tree Collapse file tree 1 file changed +7
-10
lines changed Expand file tree Collapse file tree 1 file changed +7
-10
lines changed Original file line number Diff line number Diff line change 1212npm 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
5853hljs .highlightAll ();
5954
60- hljs .initLangOnLoad ();
55+ hljs .initLangOnLoad (); // <-- init plugin
6156```
6257
6358Here’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
10196var myOptions = {
97+ // ...
10298 overrideNames: {
10399 cs: ' C#' ,
104- }
100+ },
101+ // ...
105102};
106103```
107104
You can’t perform that action at this time.
0 commit comments