Contact Support

Code blocks & inline code

To begin a code block, go to a new line and type ``` (triple backtick). 

Keyboard shortcut: ⌘ + option + 6 / Ctrl + alt + 6.

For inline code in a paragraph, type a single backtick ` to begin and end your code. Or highlight some text and press the backtick key.

Syntax highlighting

Medium code blocks do not support syntax highlighting. To embed code with syntax highlighting on Medium, try Github Gists, Codepen.io, or JSfiddle. Paste your snippet URL from one of those sources to a new line in the editor and press enter. 

Have more questions? Submit a Request