# JSX syntax highlighting

**URL:** <https://discourse.gohugo.io/t/jsx-syntax-highlighting/10404>\
**Category:** support\
**Created:** [February 6, 2018, 10:08pm UTC](https://discourse.gohugo.io/t/jsx-syntax-highlighting/10404 "2018-02-06T22:08:37Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![will-stone](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/will-stone/32/7525_2.png) [@will-stone](https://discourse.gohugo.io/u/will-stone)\
**Post date:** [February 6, 2018, 10:08pm UTC](https://discourse.gohugo.io/t/jsx-syntax-highlighting/10404/1 "2018-02-06T22:08:37Z")

</div>

Hi! Day-one Hugo user (loving it so far).

I’m playing around with syntax highlighting and I’ve noticed the closing tags of JSX are not the same colour as the opening tags (a common problem with highlighters I believe). Has anyone else had and solved this issue? Thank-you for any help or pointers you can provide.

---

<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:** [February 6, 2018, 10:20pm UTC](https://discourse.gohugo.io/t/jsx-syntax-highlighting/10404/2 "2018-02-06T22:20:09Z")

</div>

We use this library:

> **[alecthomas/chroma](https://github.com/alecthomas/chroma/)**
>
> A general purpose syntax highlighter in pure Go . Contribute to alecthomas/chroma development by creating an account on GitHub.

So you may have some luck raising an issue on that issue tracker.

---

<div class="post-metadata">

**Author:** ![will-stone](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/will-stone/32/7525_2.png) [@will-stone](https://discourse.gohugo.io/u/will-stone)\
**Post date:** [February 6, 2018, 10:24pm UTC](https://discourse.gohugo.io/t/jsx-syntax-highlighting/10404/3 "2018-02-06T22:24:32Z")

</div>

Ok, will do. Thanks. I’ll link back here with the issue…

---

<div class="post-metadata">

**Author:** ![will-stone](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/will-stone/32/7525_2.png) [@will-stone](https://discourse.gohugo.io/u/will-stone)\
**Post date:** [February 6, 2018, 10:28pm UTC](https://discourse.gohugo.io/t/jsx-syntax-highlighting/10404/4 "2018-02-06T22:28:38Z")

</div>

I’ve logged an issue: [https://github.com/alecthomas/chroma/issues/111](https://github.com/alecthomas/chroma/issues/111)
