I’m always game to try stuff out. We are a CDCK-hosted discourse here, so we are more constrained than a typical self-hosted install. However, we can edit themes and theme components. I had been thinking that we were limited to just css styling with the default hljs tagging, but to change anything meaningful, we need a new hljs javascript spec.
Best of all worlds (and simplest!) would be to upstream Fredrik’s work from Improved syntax highlighting for Julia on the web | Fredrik Ekre. It looks like that had been blocked on Safari (ok since 27 March 2023) and then v12 of hljs (still at v12.0.0-pre right now).
It does look like we can add custom language support via custom JS in a theme or theme component. I’m not clear if that means we can also override Julia’s default hljs highlighting, but I’d guess we could. I don’t know how though. To be concrete, I’d need to know what gets plopped here:
