I think I have a solution for adding syntax highlighting to Hare by Example without JavaScript.

I think I'll just run this over each example and then inject the results into the code section of each example at generation-time. Sure, it adds a CLI dependency, but avoids JavaScript and needing to rewrite this in Hare directly...for now.

https://github.com/alecthomas/chroma?tab=readme-ov-file#command-line-interface

#HareByExample #HareLang #Programming