## [Markdown Code Blocks in Confluence — 190+ Languages](/blog/markdown-code-block-confluence.md)

September 24, 2026 ·

<!-- -->

4 min read

[NGPilot](https://ngpilot.com)

Every engineering page in Confluence eventually holds code — a curl from the runbook, the config that fixed the incident, the query the dashboard runs. And every one of those snippets has three natural enemies: the language dropdown in the macro dialog, the paste that loses its indentation, and the reader who cannot copy the thing without dragging across line numbers.

Markdown fences solve all three, because they make the code block *text you type* instead of an object you configure. ` ```bash `, paste, ` ``` ` — done, highlighted, copyable. This guide shows the syntax, the theming behavior, and when fences beat the native macro.

**Tags:**

* [confluence](/blog/tags/confluence.md)
* [markdown](/blog/tags/markdown.md)
* [code-block](/blog/tags/code-block.md)
* [syntax-highlighting](/blog/tags/syntax-highlighting.md)
* [how-to](/blog/tags/how-to.md)
* [developer-tools](/blog/tags/developer-tools.md)

[**Read more**](/blog/markdown-code-block-confluence.md)
