anybody asked gh for highlighting?
think we need to pr https://github.com/github/linguist for it
maybe some amount of known .roc files is needed before they allow it
image.png kinda ugly but a tampermonkey script works too lol
stole the script from bqn folks haha
I believe we need roc to be used in 200 gh repositories
before it can be officially included
challenge accepted
I think there's a way you can enable highlighting on a per-repo basis even if GH itself doesn't know how to highlight them
but I don't remember how to do it - I looked it up at some point
From what I can tell you can’t do custom syntax highlighting per-repo (and a lot of people have been upset about it for a while)
https://github.com/github/linguist/issues/2598
https://github.com/github/markup/issues/1440
But it does look like you can override the syntax highlighting language on a per file basis. So we could use the coffeescript syntax trick
https://github.com/github/linguist/blob/master/docs/overrides.md#using-gitattributes
Seems to work:
https://github.com/Billzabob/roc-clock/blob/main/examples/clock.roc
It also shows up as CoffeeScript under languages now though...
languages
Last updated: Jul 05 2025 at 12:14 UTC