Skip to content

Commit 3a2392f

Browse files
authored
Update README.md
1 parent 09503ea commit 3a2392f

File tree

1 file changed

+13
-4
lines changed

1 file changed

+13
-4
lines changed

README.md

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
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)
22

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.
44

55
[DEMO](http://wcoder.github.io/highlightjs-lang.js/)
66

@@ -16,6 +16,11 @@ npm i highlightjs-lang.js
1616
bower install highlightjs-lang
1717
```
1818

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+
```
1924

2025
## Usage
2126

@@ -26,7 +31,7 @@ Download plugin and include file after highlight.js:
2631
<script src="path/to/highlightjs-lang.min.js"></script>
2732
```
2833

29-
Adding styles:
34+
Add styles:
3035
```css
3136
.hljs-lang {
3237
background: #333;
@@ -57,5 +62,9 @@ $(document).ready(function() {
5762
});
5863
```
5964

65+
## More plugins
66+
67+
- [highlightjs-line-numbers.js](https://github.com/wcoder/highlightjs-line-numbers.js) — Line numbering plugin.
68+
6069
---
61-
&copy; 2015 Yauheni Pakala | MIT License
70+
&copy; 2015 Yauheni Pakala | MIT License

0 commit comments

Comments
 (0)