Question about creating a theme component from HighlightJS script

Hi there! I saw your message about building a theme component from a fork of HighlightJS. I am hoping to do something similar for the Modular forum to add syntax highlighting for Mojo and I was wondering if you might be able to share any instructions or point me in the right direction? Thanks so much! :pray:

1 Like

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.

It will look like this currently:

The install instructions are the same as every theme component

  1. Install it under admin > customize
  2. Add it to your main theme
  3. Add “mojo” to the site setting Highlighted languages.
3 Likes

Oh my goodness, thank you so much!! I really, really appreciate this! Amazing.

2 Likes