File tree 1 file changed +13
-4
lines changed
1 file changed +13
-4
lines changed Original file line number Diff line number Diff line change 1
- # highlightjs-lang.js
1
+ # highlightjs-lang.js [ ![ npm ] ( https://img.shields.io/npm/v/highlightjs-lang.js.svg )] ( https://www.npmjs.com/package/highlightjs-lang.js ) ![ npm ] ( https://img.shields.io/npm/dw/highlightjs-lang.js.svg )
2
2
3
- Highlight.js plugin for display language of syntax highlight.
3
+ [ Highlight.js] ( https://github.com/highlightjs/highlight.js ) plugin for display language of syntax highlight.
4
4
5
5
[ DEMO] ( http://wcoder.github.io/highlightjs-lang.js/ )
6
6
@@ -16,6 +16,11 @@ npm i highlightjs-lang.js
16
16
bower install highlightjs-lang
17
17
```
18
18
19
+ #### Getting the library from CDN
20
+
21
+ ``` html
22
+ <script src =" //cdn.jsdelivr.net/npm/highlightjs-lang.js@1.0.0/dist/highlightjs-lang.min.js" ></script >
23
+ ```
19
24
20
25
## Usage
21
26
@@ -26,7 +31,7 @@ Download plugin and include file after highlight.js:
26
31
<script src =" path/to/highlightjs-lang.min.js" ></script >
27
32
```
28
33
29
- Adding styles:
34
+ Add styles:
30
35
``` css
31
36
.hljs-lang {
32
37
background : #333 ;
@@ -57,5 +62,9 @@ $(document).ready(function() {
57
62
});
58
63
```
59
64
65
+ ## More plugins
66
+
67
+ - [ highlightjs-line-numbers.js] ( https://github.com/wcoder/highlightjs-line-numbers.js ) — Line numbering plugin.
68
+
60
69
---
61
- © ; 2015 Yauheni Pakala | MIT License
70
+ © ; 2015 Yauheni Pakala | MIT License
You can’t perform that action at this time.
0 commit comments