# Question about creating a theme component from HighlightJS script

**URL:** <https://meta.discourse.org/t/question-about-creating-a-theme-component-from-highlightjs-script/351520>\
**Category:** Development\
**Created:** [February 10, 2025, 7:08pm UTC](https://meta.discourse.org/t/question-about-creating-a-theme-component-from-highlightjs-script/351520 "2025-02-10T19:08:28Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)\
**Post date:** [February 10, 2025, 8:36pm UTC](https://meta.discourse.org/t/question-about-creating-a-theme-component-from-highlightjs-script/351520/2 "2025-02-10T20:36:10Z")

</div>

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](https://github.com/discourse/discourse-highlightjs-mojo)

It will look like this currently:

 ![The image displays Falo code with uncommented pop.variadic.create' operations, illustrating issues with incorrect op' calls, the desired case 1 initialization, the failure in prepopulating with five elements due to expected elements, and an unsuccessful attempt to append elements without the appropriate op' call. (Captioned by AI)](https://global.discourse-cdn.com/meta/original/4X/c/5/d/c5dd309db9f868ede1f179684ded47bf9d50c65b.jpeg)

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`.

---

_[View the full topic](https://meta.discourse.org/t/question-about-creating-a-theme-component-from-highlightjs-script/351520)._
