From 7e49db5ddefe8c515b5f3931a5c701efaac33d91 Mon Sep 17 00:00:00 2001 From: David Luevano Alvarado Date: Fri, 16 Dec 2022 17:45:03 -0600 Subject: change structure for new pyssg version --- live/static/scripts/hljs_gdscript_class.js | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 live/static/scripts/hljs_gdscript_class.js (limited to 'live/static/scripts/hljs_gdscript_class.js') diff --git a/live/static/scripts/hljs_gdscript_class.js b/live/static/scripts/hljs_gdscript_class.js new file mode 100644 index 0000000..3feb099 --- /dev/null +++ b/live/static/scripts/hljs_gdscript_class.js @@ -0,0 +1,7 @@ +// this is a dirty solution as I wasn't able to add actual gdscript functionality as described +// in the hljs documentation... I'm too dumb I guess +// no longer required, i'm directly using what i found here: https://joshanthony.info/2021/07/01/how-to-add-gdscript-syntax-highlighting-to-your-blog/ +document.addEventListener("DOMContentLoaded", function(event) { + let a = document.getElementsByClassName("language-gdscript"); + [...a].forEach(x => x.className = "hljs gdscript"); +}) \ No newline at end of file -- cgit v1.2.3-70-g09d2