highlight js demo > lisp : it seems the closest builtin is scheme
With rackets #lang ... it is probably very difficult to get syntax highlighting in external tools like highlight.js.
Maybe people who have worked on language server things and adding syntax highlighting to editors other than drracket, have some insights about what could be at least be approximated?
The more I think about it, it seems very difficult to add highlighting properly, maybe having only basic highlighting only for #lang racket would already be useful?
But I haven't found anything that would suggest, that this can be simply configured somewhere while keeping the hosting. Maybe there is something in the settings that allows to add some custom javascript or something, that could add another lang to highlight.js?
I’ve forked highlight.js and started adding racket identifiers to a copy of scheme.js that I’ve named racket.js
Not uploaded my changes yet because I’m only up to fixnums in the racket reference
Was only planning on identifiers - so it will still break on Racket specific syntax - so if anyone feels like picking something’s racket specific it would be a help.
I feel like handling #lang xxx yyy/zzz would be a sufficient start.
Another option is to use a pastebin that embeds in discourse posts or enhance pasterack to do the same with oEmbed
Ah! Okay. I had set scheme to be the default language highlight... but I had failed to add scheme to the list of legal highlight choices. Seems like there could be a warning about that, sigh... Ah well.