# HighlightJS is auto-selecting wrong language

**URL:** <https://meta.discourse.org/t/highlightjs-is-auto-selecting-wrong-language/141739>\
**Category:** Product Support\
**Created:** [February 16, 2020, 11:11am UTC](https://meta.discourse.org/t/highlightjs-is-auto-selecting-wrong-language/141739 "2020-02-16T11:11:07Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![pmusaraj](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pmusaraj/32/119489_2.png) [@pmusaraj](https://meta.discourse.org/u/pmusaraj)\
**Post date:** [February 17, 2020, 2:28pm UTC](https://meta.discourse.org/t/highlightjs-is-auto-selecting-wrong-language/141739/5 "2020-02-17T14:28:34Z")

</div>

> [@topogram](#):
>
> Is there a way to remove / unload the unnecessary languages loaded by Discourse?

Yes, you can add/remove languages from the `highlighted languages` site setting. Swift is not enabled by default and likely not enabled on your site, which is probably why

````plaintext
```swift

````

is not working for you. (Swift is also not enabled on meta.) It does work for me locally when I add Swift to the site setting:

 ![image](https://global.discourse-cdn.com/meta/original/3X/9/0/90d5b7b863773cf1e2ec8e05ec73bbeccd0bf33b.png)

---

_[View the full topic](https://meta.discourse.org/t/highlightjs-is-auto-selecting-wrong-language/141739)._
