Tutorial : How to Add Source Code to Your Medium Article
There are 2 ways to add source code to Medium articles: block code and Github gists.
Block Code
Here is an example of a block code
There are 2 ways of creating a block code.
- Create a new line and then type this: ```. This will open a new code block.
- Another way to do this is to select a block of text, then on Mac do this command: CMD + option + 6