Skip to content

Commit 238cc97

Browse files
committed
Update version
1 parent e89decd commit 238cc97

File tree

5 files changed

+32
-21
lines changed

5 files changed

+32
-21
lines changed

LICENSE

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright (c) 2015 Yauheni Pakala
3+
Copyright (c) 2017 Yauheni Pakala
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

+28-17
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# highlightjs-line-numbers.js [![version](http://img.shields.io/badge/release-v1.1.0-brightgreen.svg?style=flat)](https://github.com/wcoder/highlightjs-line-numbers.js/archive/master.zip)
1+
# highlightjs-line-numbers.js [![version](http://img.shields.io/badge/release-v2.0.0-brightgreen.svg?style=flat)](https://github.com/wcoder/highlightjs-line-numbers.js/archive/master.zip)
22

33
Highlight.js line numbers plugin.
44

@@ -25,21 +25,6 @@ Download plugin and include file after highlight.js:
2525
<script src="path/to/highlightjs-line-numbers.min.js"></script>
2626
```
2727

28-
Adding styles:
29-
```css
30-
.hljs-line-numbers {
31-
text-align: right;
32-
border-right: 1px solid #ccc;
33-
color: #999;
34-
-webkit-touch-callout: none;
35-
-webkit-user-select: none;
36-
-khtml-user-select: none;
37-
-moz-user-select: none;
38-
-ms-user-select: none;
39-
user-select: none;
40-
}
41-
```
42-
4328
Initialize plugin after highlight.js:
4429
```js
4530
hljs.initHighlightingOnLoad();
@@ -56,5 +41,31 @@ $(document).ready(function() {
5641
});
5742
```
5843

44+
If your needs cool style, add styles by taste:
45+
```css
46+
/* for block of numbers */
47+
td.hljs-ln-numbers {
48+
-webkit-touch-callout: none;
49+
-webkit-user-select: none;
50+
-khtml-user-select: none;
51+
-moz-user-select: none;
52+
-ms-user-select: none;
53+
user-select: none;
54+
55+
text-align: center;
56+
color: #ccc;
57+
border-right: 1px solid #CCC;
58+
vertical-align: top;
59+
padding-right: 5px;
60+
61+
/* your custom style here */
62+
}
63+
64+
/* for block of code */
65+
td.hljs-ln-code {
66+
padding-left: 10px;
67+
}
68+
```
69+
5970
---
60-
&copy; 2015 Yauheni Pakala | MIT License
71+
&copy; 2017 Yauheni Pakala | MIT License

bower.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "highlightjs-line-numbers.js",
3-
"version": "1.1.0",
3+
"version": "2.0.0",
44
"homepage": "https://github.com/wcoder/highlightjs-line-numbers.js",
55
"authors": [
66
"Yauheni Pakala <evgeniy.pakalo@gmail.com>"

dist/highlightjs-line-numbers.min.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "highlightjs-line-numbers.js",
3-
"version": "1.1.0",
3+
"version": "2.0.0",
44
"description": "Highlight.js line numbers plugin.",
55
"main": "src/highlightjs-line-numbers.js",
66
"dependencies": {},

0 commit comments

Comments
 (0)