summaryrefslogtreecommitdiff
path: root/live/static/scripts/hljs_gdscript_class.js
blob: 3feb099024bba58ba202b795e28a2f5da7d9f76d (plain)
1
2
3
4
5
6
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");
})