Skip to content

Commit 7ccad75

Browse files
committed
Updated README (using jQuery)
1 parent 845b9b3 commit 7ccad75

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,12 @@ hljs.initHighlightingOnLoad();
3333
hljs.initLineNumbersOnLoad();
3434
```
3535

36+
Here’s an equivalent way to calling `initLineNumbersOnLoad` using jQuery:
37+
38+
$(document).ready(function() {
39+
$('code.hljs').each(function(i, block) {
40+
hljs.lineNumbersBlock(block);
41+
});
42+
});
43+
3644
© 2015 Yauheni Pakala | MIT License

0 commit comments

Comments
 (0)