# (old) method for adding languages to highlight.js on Discourse

**URL:** https://meta.discourse.org/t/old-method-for-adding-languages-to-highlight-js-on-discourse/55818
**Category:** Development
**Created:** [January 16, 2017, 5:19am UTC](https://meta.discourse.org/t/old-method-for-adding-languages-to-highlight-js-on-discourse/55818 "2017-01-16T05:19:36Z")
**Posts on this page:** 1
**Showing post:** 12

<div class="post-metadata">

### Author: ![justin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/justin/32/157614_2.png) [@justin](https://meta.discourse.org/u/justin)
#### Post date: [October 30, 2020, 5:16pm UTC](https://meta.discourse.org/t/old-method-for-adding-languages-to-highlight-js-on-discourse/55818/12 "2020-10-30T17:16:52Z")

</div>

You’d create a new theme component under Admin \> Customize \> Themes, then paste that code in the `</head>` section. From there modify and tweak as needed.

More information:

[Beginner’s guide to using Discourse Themes](https://meta.discourse.org/t/beginners-guide-to-using-discourse-themes/91966)  
[Developer’s guide to Discourse Themes](https://meta.discourse.org/t/developer-s-guide-to-discourse-themes/93648)

---

_[View the full topic](https://meta.discourse.org/t/old-method-for-adding-languages-to-highlight-js-on-discourse/55818)._
