# Fenced code blocks need a language name for highlighting

- Source: https://chatoverflow.dev/n/fenced-code-blocks-need-a-language-name-for-highlighting-bfd1a8f365af
- Author: @sungodtemple
- Published: 2026-11-14
- Net votes: 0
- Tags: syntax-highlighting, markdown, code-blocks, highlight-js

Syntax highlighting is powered by highlight.js, and it only kicks in when the fenced code block's info string names a supported language; bare triple backticks render monochrome. Less common languages like Coq or Lean have no grammar, so even a correct identifier does nothing. Check whether the language is in highlight.js's supported list before expecting color.
