# Markdown Syntax Highlight - Non default language

**URL:** <https://discourse.gohugo.io/t/markdown-syntax-highlight-non-default-language/16343>\
**Category:** support\
**Created:** [January 12, 2019, 11:06pm UTC](https://discourse.gohugo.io/t/markdown-syntax-highlight-non-default-language/16343 "2019-01-12T23:06:40Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![omrllm](https://avatars.discourse-cdn.com/v4/letter/o/ed8c4c/32.png) [@omrllm](https://discourse.gohugo.io/u/omrllm)\
**Post date:** [January 12, 2019, 11:06pm UTC](https://discourse.gohugo.io/t/markdown-syntax-highlight-non-default-language/16343/1 "2019-01-12T23:06:41Z")

</div>

Hi,

I’ve seen that Github allows certain and non conventional syntax highlighting with markdown.

I’d like to know, excluding the possibility of using html, is it possible to set a file where I can define a syntax highlighting language (Solidity or Vyper) which is not set by default?

**TL, DR: By default I can highlight a Javascript or a Python code block… is this possible with something like Solidity?**

---

<div class="post-metadata">

**Author:** ![zwbetz](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/zwbetz/32/16088_2.png) [@zwbetz](https://discourse.gohugo.io/u/zwbetz)\
**Post date:** [January 12, 2019, 11:09pm UTC](https://discourse.gohugo.io/t/markdown-syntax-highlight-non-default-language/16343/2 "2019-01-12T23:09:37Z")

</div>

Have you tried the built-in syntax highlighting provided by Chroma?

---

<div class="post-metadata">

**Author:** ![bep](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/bep/32/3332_2.png) [@bep](https://discourse.gohugo.io/u/bep)\
**Post date:** [January 12, 2019, 11:12pm UTC](https://discourse.gohugo.io/t/markdown-syntax-highlight-non-default-language/16343/3 "2019-01-12T23:12:08Z")

</div>

This is the current list supported by Hugo:

> **[Syntax Highlighting](https://gohugo.io/content-management/syntax-highlighting/#list-of-chroma-highlighting-languages)**
>
> Hugo comes with really fast syntax highlighting from Chroma.

I think the above is up to date.

---

<div class="post-metadata">

**Author:** ![omrllm](https://avatars.discourse-cdn.com/v4/letter/o/ed8c4c/32.png) [@omrllm](https://discourse.gohugo.io/u/omrllm)\
**Post date:** [January 13, 2019, 8:38am UTC](https://discourse.gohugo.io/t/markdown-syntax-highlight-non-default-language/16343/4 "2019-01-13T08:38:24Z")

</div>

Are there any official instructions to use/install Chroma?

---

<div class="post-metadata">

**Author:** ![Grob](https://avatars.discourse-cdn.com/v4/letter/g/f14d63/32.png) [@Grob](https://discourse.gohugo.io/u/Grob)\
**Post date:** [January 13, 2019, 10:15am UTC](https://discourse.gohugo.io/t/markdown-syntax-highlight-non-default-language/16343/5 "2019-01-13T10:15:17Z")

</div>

Chroma is a [part of Hugo](https://gohugo.io/content-management/syntax-highlighting/).

([Here](https://github.com/gohugoio/hugo#dependencies) you can find a list of all the dependencies.)

---

<div class="post-metadata">

**Author:** ![zwbetz](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/zwbetz/32/16088_2.png) [@zwbetz](https://discourse.gohugo.io/u/zwbetz)\
**Post date:** [January 13, 2019, 10:54am UTC](https://discourse.gohugo.io/t/markdown-syntax-highlight-non-default-language/16343/6 "2019-01-13T10:54:36Z")

</div>

@omrllm Adding this to your `config.toml` will get you started:

```
pygmentsCodefences = true
pygmentsCodefencesGuessSyntax = true
pygmentsStyle = "pygments"

```

Here, `"pygments"` is just the name of the Chroma style to be used. Checkout the [Chroma style gallery](https://xyproto.github.io/splash/docs/all.html) and choose the style you like.

---

<div class="post-metadata">

**Author:** ![omrllm](https://avatars.discourse-cdn.com/v4/letter/o/ed8c4c/32.png) [@omrllm](https://discourse.gohugo.io/u/omrllm)\
**Post date:** [January 13, 2019, 2:22pm UTC](https://discourse.gohugo.io/t/markdown-syntax-highlight-non-default-language/16343/7 "2019-01-13T14:22:52Z")

</div>

> [@zwbetz](#):
>
> ```auto
> pygmentsCodefences = true
> pygmentsCodefencesGuessSyntax = true
> pygmentsStyle = "pygments"
> 
> ```

Alright, now it works.

Thank you very much!
