How to Embed Code in Medium?

Embedding code in Medium can be done easily in 2 ways.

  1. Embed code directly in Medium

To embed code directly in medium, type in Command+ Option+6 (if you use mac)

If you use other OS, this is what you got to type:

  • Windows: Ctrl + Alt + 6
  • Linux: Ctrl + Alt + 6

When these keys were press, the box below will appear

2. Embed using GitHub Gist

Goto “Your gists”

To do this, log in to your Github profile and go to ‘your gists’.

This is how it looks in Medium

Thanks for reading this blog. Do share and follow for more stuff like this.

--

--

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