File tree Expand file tree Collapse file tree 1 file changed +13
-4
lines changed Expand file tree Collapse file tree 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 )
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
1616bower 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- © ; 2015 Yauheni Pakala | MIT License
70+ © ; 2015 Yauheni Pakala | MIT License
You can’t perform that action at this time.
0 commit comments