parent
dd382f6e5e
commit
571f5d43cd
@ -0,0 +1,19 @@ |
||||
//replace the default background color from highlightjs |
||||
.hljs { |
||||
background: $gray-100; |
||||
} |
||||
|
||||
.line-numbers { |
||||
|
||||
[data-line-number] { |
||||
|
||||
&:before { |
||||
content: attr(data-line-number); |
||||
display: inline-block; |
||||
border-right: 1px solid $gray-400; |
||||
padding: 0 .5em; |
||||
margin-right: .5em; |
||||
color: $gray-600 |
||||
} |
||||
} |
||||
} |
@ -0,0 +1,9 @@ |
||||
import $ from 'jquery' |
||||
import hljs from 'highlight.js' |
||||
import hljsDefineSolidity from 'highlightjs-solidity' |
||||
|
||||
// only activate highlighting on pages with this selector
|
||||
if ($('[data-activate-highlight]').length > 0) { |
||||
hljsDefineSolidity(hljs) |
||||
hljs.initHighlightingOnLoad() |
||||
} |
Loading…
Reference in new issue