# How to Send Code Blocks in Discord (With Syntax Highlighting)

DevFeed: [How to Send Code Blocks in Discord (With Syntax Highlighting)](<https://devfeed.tech/articles/how-to-send-code-blocks-in-discord-with-syntax-highlighting-86852.md>)

Original publisher: [Read original article](<https://markodenic.com/discord-code-block/>)

Author: Marko

Published: 2026-10-14T09:00:00Z

Content type: tutorial

Language: en

Sources: [Marko Denic Blog](<https://devfeed.tech/sources/marko-denic-blog.md>)

Topics: [Discord](<https://devfeed.tech/topics/discord.md>), [Highlight.js](<https://devfeed.tech/topics/highlightjs.md>)

Tags: [code](<https://devfeed.tech/tags/code.md>), [discord](<https://devfeed.tech/tags/discord.md>), [javascript](<https://devfeed.tech/tags/javascript.md>), [python](<https://devfeed.tech/tags/python.md>), [syntax-highlighting](<https://devfeed.tech/tags/syntax-highlighting.md>), [tutorial](<https://devfeed.tech/tags/tutorial.md>), [web-development](<https://devfeed.tech/tags/web-development.md>)

## AI overview

A practical guide to sending code in Discord using inline code and fenced code blocks, including syntax highlighting, common formatting fixes, and options for sharing code that exceeds message limits.

## Source excerpt

Send code in Discord the right way: inline code, multi-line code blocks, syntax highlighting for JavaScript, Python, CSS and more, colored text with diff, and what to do with code that's too long.