Tutorial : How to Add Source Code to Your Medium Article

Block Code

Here is an example of a block code
  1. Create a new line and then type this: ```. This will open a new code block.
  2. Another way to do this is to select a block of text, then on Mac do this command: CMD + option + 6

--

--

Love podcasts or audiobooks? Learn on the go with our new app.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store