Hey @CarolineFrasca, here is a theme-component wrapping your work and ready to use on Discourse. You can fork it, or use as it is.
https://github.com/discourse/discourse-highlightjs-mojo
It will look like this currently:
The install instructions are the same as every theme component
- Install it under admin > customize
- Add it to your main theme
- Add “mojo” to the site setting
Highlighted languages.
