Goose  Artifact [c8cabc6fed]

Artifact c8cabc6fed07c84f74a30d296d3c510b203c272ce0913a2a5cb8ea1938099790:

  • File www/highlight.js — part of check-in [951c8fed08] at 2021-09-12 23:09:44 on branch trunk — Updated repo's syntax highlighting (user: achavasse size: 402)

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-g0" || langType == "language-g1" )
            code.className = "language-cpp";
    }

    hljs.highlightAll();
}