Skip to content

Commit 2701b10

Browse files
committed
add HightlightJS
1 parent 599057b commit 2701b10

File tree

5 files changed

+40
-14
lines changed

5 files changed

+40
-14
lines changed

diff2html.css

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* Diff to HTML (diff2html.css)
44
* Author: rtfpessoa
55
* Date: Friday 29 August 2014
6-
* Last Update: Saturday 27 September 2014
6+
* Last Update: Sunday 25 January 2015
77
*
88
*/
99

@@ -86,22 +86,32 @@
8686
margin-right: -4px;
8787
}
8888

89-
.d2h-code-line {
89+
.d2h-code-line.hljs {
90+
display: block;
9091
white-space: pre;
91-
padding-left: 10px;
92-
padding-right: 10px;
92+
padding: 0 10px;
9393
height: 18px;
9494
line-height: 18px;
9595
margin-left: 80px;
96+
/* Override HighlightJS */
97+
color: inherit;
98+
overflow-x: inherit;
99+
background: none;
100+
/* ******************** */
96101
}
97102

98103
.d2h-code-side-line {
104+
display: block;
99105
white-space: pre;
100-
padding-left: 10px;
101-
padding-right: 10px;
106+
padding: 0 10px;
102107
height: 18px;
103108
line-height: 18px;
104109
margin-left: 50px;
110+
/* Override HighlightJS */
111+
color: inherit;
112+
overflow-x: inherit;
113+
background: none;
114+
/* ******************** */
105115
}
106116

107117
.d2h-code-line del,

diff2html.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* Diff to HTML (diff2html.js)
44
* Author: rtfpessoa
55
* Date: Friday 29 August 2014
6-
* Last Update: Saturday 24 January 2015
6+
* Last Update: Sunday 25 January 2015
77
*
88
* Diff command:
99
* git diff

diff2html.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)