How to embed code on medium
Embedding block code on medium pretty easy, there are several ways :
- Embed directly
Windows: Control + Alt + 6
Linux : Control + Alt + 6
<-- Paste your code here -->
2. Using Gits https://gist.github.com
Github gits is much more better ways to embed code in medium.
Open your account in github ( create once if you don’t have ) and go to the https://gist.github.com/

if you will share this code for example in medium , you can save as public gist

After save as public you will get link that can embed to medium