How to Use Gists to Show Code Snippets

You don’t need to make a new Gist for each code snippet. Instead, display a single file from a multi-file Gist

A GitHub Gist is arguably the best way to display code snippets in a Medium post. Syntax highlight alone makes it the ideal choice. A Gist will typically consist of multiple files, which inevitably leads to the…