How to show code blocks in Medium

Highlight a portion of text, then press ⌘+Alt+6 to make it into a code block.

It looks like this:

var string = “All your codes are belong to us”;

To get other hints and formatting powers that are not in pop up formatting menu, press Cmd-? to pull up a menu of all available shortcuts right inside Medium.

It looks like this:

I originally found this article, but the PC command doesn’t work on a Mac, so I wrote this one.

Now go forth and conquer with your new formatting powers.

Code, design, cook. Make stuff. Cookies. @BYU grad.

Code, design, cook. Make stuff. Cookies. @BYU grad.