EN
Medium - how to highlight code
0 points
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,
- Specify the gist file name and extension (file extension enables syntax highlighting - in this example JavaScript highlighting for App.js),
- 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:
