Embedding source code in WordPress isn’t an easy task. Although few plugins have tried to simplify this task of sharing and embedding codes, it’s easy to get the code messed up with other text and content in WordPress editor.
GithHub Gists are one of the most popular ways to share code snippets on the web. WordPress as of its latest version doesn’t support oEmbeds for any code and snippet sharing websites by default.
Won’t it be awesome if we could directly embed the code snippets from Gist using oEmbeds?
In this post, I will walk you through few ways that you can easily embed GitHub Gists in WordPress posts. I will also show you some additional controls and options with Gist that you can achieve by installing different plugins.
First, if you have stumbled on this article and do not know idea about Gist, here’s a brief introduction to the code snippet service – Gist.