DEV Community

Peter Thaleikis 🍪
Peter Thaleikis 🍪

Posted on • Originally published at releasecandidate.dev on

Bash/HTML/JS is not a valid Prism.js language for eleventy-plugin-syntaxhighlight

This is one of the small articles I wish I had found while researching a problem I encountered. So I hope it solves your issue without much fuss.

If you are into the static generator 11ty like me you might stumble upon one of these messages:

  • "Bash" is not a valid Prism.js language for eleventy-plugin-syntaxhighlight

  • "HTML" is not a valid Prism.js language for eleventy-plugin-syntaxhighlight

  • "JS" is not a valid Prism.js language for eleventy-plugin-syntaxhighlight

  • "Pug" is not a valid Prism.js language for eleventy-plugin-syntaxhighlight

Prism.js is the syntax highlighting library used in eleventy.

Good news is: I've got an easy solution for you available. Change the spelling to lowercase and you should be good to go.

Sentry image

See why 4M developers consider Sentry, “not bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs