In this article, we would like to show you how to highlight code on Medium website.
To highlight your code on Medium you need to:
- Go to the GitHub Gist and create a new gist,
- In the bottom right corner select "Create public gist",
- In the upper right corner, change "Embed" to "Share",
- Copy the share link,
- Paste the link in your post at medium.com and press enter.
Creating new gist:
Sharing new gist:
Final result in Medium post: