From 8fb25106bfe288ee834283937fef3afde857a0f9 Mon Sep 17 00:00:00 2001 From: Mylloon Date: Mon, 24 Apr 2023 20:58:55 +0200 Subject: [PATCH] add line numbering --- static/js/libs/hljs.js | 2 ++ templates/libs/hljs_footer.html | 1 + 2 files changed, 3 insertions(+) diff --git a/static/js/libs/hljs.js b/static/js/libs/hljs.js index 6e9f6c1..b356c48 100644 --- a/static/js/libs/hljs.js +++ b/static/js/libs/hljs.js @@ -14,4 +14,6 @@ window.addEventListener("load", () => { } hljs.highlightAll(); + + hljs.initLineNumbersOnLoad(); }); diff --git a/templates/libs/hljs_footer.html b/templates/libs/hljs_footer.html index 7d2469d..84f5398 100644 --- a/templates/libs/hljs_footer.html +++ b/templates/libs/hljs_footer.html @@ -1,3 +1,4 @@ +