add line numbering

This commit is contained in:
Mylloon 2023-04-24 20:58:55 +02:00
parent 5a0b4444c8
commit 8fb25106bf
Signed by: Anri
GPG key ID: A82D63DFF8D1317F
2 changed files with 3 additions and 0 deletions

View file

@ -14,4 +14,6 @@ window.addEventListener("load", () => {
}
hljs.highlightAll();
hljs.initLineNumbersOnLoad();
});

View file

@ -1,3 +1,4 @@
<script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/11.7.0/highlight.min.js"></script>
<script src="//unpkg.com/highlightjs-copy/dist/highlightjs-copy.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/highlightjs-line-numbers.js/2.8.0/highlightjs-line-numbers.min.js"></script>
<script src="/js/libs/hljs.js"></script>