Artifact e5d166678b4363be8c05fda4f75b49d6a1745f40caabb185f6838d1f298cf352:
- File www/highlight.js — part of check-in [4b28030b9a] at 2021-09-12 23:18:13 on branch trunk — Repo: syntax highlighting issue workaround (user: achavasse size: 430)
function HighlightCode() { var code = document.getElementsByTagName( "code" )[0]; if( code ) { var langType = code.className; // Force the highlighter to colorize goose files as cpp files, // it's good enough for now if( langType == "language-g" || langType == "language-g0" || langType == "language-g1" ) code.className = "language-cpp"; } hljs.highlightAll(); }