# Erlang-highlight.js - add highlight.js for Erlang, leex, and yecc

**URL:** <https://erlangforums.com/t/erlang-highlight-js-add-highlight-js-for-erlang-leex-and-yecc/5862>\
**Category:** Libraries\
**Tags:** erlang, javascript\
**Created:** [August 13, 2026, 4:14pm UTC](https://erlangforums.com/t/erlang-highlight-js-add-highlight-js-for-erlang-leex-and-yecc/5862 "2026-08-13T16:14:21Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![chiroptical](https://erlangforums.com/user_avatar/erlangforums.com/chiroptical/32/2044_2.png) [@chiroptical](https://erlangforums.com/u/chiroptical)\
**Post date:** [August 13, 2026, 4:14pm UTC](https://erlangforums.com/t/erlang-highlight-js-add-highlight-js-for-erlang-leex-and-yecc/5862/1 "2026-08-13T16:14:21Z")

</div>

I was re-working my blog and noticed that the built-in [https://highlightjs.org](https://highlightjs.org) highlights for Erlang aren’t very complete. I saw [GitHub - gleam-lang/gleam-highlight.js: 🎨 Gleam syntax highlighting with Highlight.js · GitHub](https://github.com/gleam-lang/gleam-highlight.js) and used it as a starting point to create an Erlang version which covers all of the language features I use in my blog.

It allows you to use `erlang`, `leex`, and `yecc` code fences. It is vibe-coded but I’ll hopefully find some time to read and then publish it on npm.

Code is available on GitHub if you want it now:

> **[GitHub - chiroptical/erlang-highlight.js: Add highlight.js for Erlang, leex, and yecc](https://github.com/chiroptical/erlang-highlight.js)**
>
> Add highlight.js for Erlang, leex, and yecc

---

<div class="post-metadata">

**Author:** ![chiroptical](https://erlangforums.com/user_avatar/erlangforums.com/chiroptical/32/2044_2.png) [@chiroptical](https://erlangforums.com/u/chiroptical)\
**Post date:** [August 13, 2026, 6:38pm UTC](https://erlangforums.com/t/erlang-highlight-js-add-highlight-js-for-erlang-leex-and-yecc/5862/2 "2026-08-13T18:38:52Z")

</div>

I just added releases [Release v0.0.1 · chiroptical/erlang-highlight.js · GitHub](https://github.com/chiroptical/erlang-highlight.js/releases/tag/v0.0.1) for the JS files.
