# Disabling built in chroma

**URL:** <https://discourse.gohugo.io/t/disabling-built-in-chroma/33364>\
**Category:** support\
**Tags:** highlight\
**Created:** [June 13, 2021, 10:50am UTC](https://discourse.gohugo.io/t/disabling-built-in-chroma/33364 "2021-06-13T10:50:56Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Foxandxss](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/foxandxss/32/14588_2.png) [@Foxandxss](https://discourse.gohugo.io/u/Foxandxss)\
**Post date:** [June 13, 2021, 10:50am UTC](https://discourse.gohugo.io/t/disabling-built-in-chroma/33364/1 "2021-06-13T10:50:57Z")

</div>

Hello, is it there a way to disable the chroma support? I want to bring my own syntax highlight (highlight.js). I guess server side highlight is better than client-side, but chroma doesn’t support angular very well.

Thanks.

---

<div class="post-metadata">

**Author:** ![alexandros](https://avatars.discourse-cdn.com/v4/letter/a/ecc23a/32.png) [@alexandros](https://discourse.gohugo.io/u/alexandros)\
**Post date:** [June 13, 2021, 10:55am UTC](https://discourse.gohugo.io/t/disabling-built-in-chroma/33364/2 "2021-06-13T10:55:50Z")

</div>

I suppose that if you set the [default Highlight configuration settings](https://gohugo.io/getting-started/configuration-markup#highlight) to `false`, then Chroma should be disabled.

---

<div class="post-metadata">

**Author:** ![Foxandxss](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/foxandxss/32/14588_2.png) [@Foxandxss](https://discourse.gohugo.io/u/Foxandxss)\
**Post date:** [June 13, 2021, 11:32am UTC](https://discourse.gohugo.io/t/disabling-built-in-chroma/33364/3 "2021-06-13T11:32:34Z")

</div>

I tried to do (in json):

```auto
"markup": {
  "highlight": false
}

```

That doesn’t work, highlight expect and object and not a boolean. Not sure if that is what you meant

---

<div class="post-metadata">

**Author:** ![alexandros](https://avatars.discourse-cdn.com/v4/letter/a/ecc23a/32.png) [@alexandros](https://discourse.gohugo.io/u/alexandros)\
**Post date:** [June 13, 2021, 11:43am UTC](https://discourse.gohugo.io/t/disabling-built-in-chroma/33364/4 "2021-06-13T11:43:05Z")

</div>

No that is not what I meant.

I suggested that in your project’s config, you copy the table of the default configuration and turn off the enabled settings:

```auto
anchorLineNos = false
    codeFences = false
    guessSyntax = false
    hl_Lines = ""
    lineAnchors = ""
    lineNoStart = ""
    lineNos = false
    lineNumbersInTable = false
    noClasses = false
    style = ""
    tabWidth = ""

```

---

<div class="post-metadata">

**Author:** ![Foxandxss](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/foxandxss/32/14588_2.png) [@Foxandxss](https://discourse.gohugo.io/u/Foxandxss)\
**Post date:** [June 13, 2021, 12:23pm UTC](https://discourse.gohugo.io/t/disabling-built-in-chroma/33364/5 "2021-06-13T12:23:49Z")

</div>

Thank you sir, that works like a charm. Opened a issue in chroma for the support I would like to have and then I can switch back easily.

---

<div class="post-metadata">

**Author:** ![system](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/system/32/1_2.png) [@system](https://discourse.gohugo.io/u/system)\
**Post date:** [June 15, 2021, 12:24pm UTC](https://discourse.gohugo.io/t/disabling-built-in-chroma/33364/6 "2021-06-15T12:24:24Z")

</div>

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.
