Embed all the Gists!

Robert O'Rourke
Development WordPress

Here’s a little snippet that you might like to use, automatically embed gists from github by simply pasting the URL into a post or page. It makes life easier if you prefer to use the visual editor when authoring content.

Github gists are a great way to create, develop and share snippets of code quickly.

https://gist.github.com/2926827

24 responses to “Embed all the Gists!

  1. cheers, one less plugin needed on my site!

    1. Cool, which plugin were you using?

      I’ve been thinking about something that ties into the API and gives you a few more tools to play with but it always good to look at the competition first 🙂

    2. Hi, I am wondering if new comment replies could be pushed above older comments? Thanks!

      1. I guess I should say, new replies to a comment could push that entire comment entry above other comments

        1. I’m sure it’s doable – is this a general enquiry about WordPress or something you think we should implement on this site?

  2. This is brilliant, thanks!

  3. Perfect, just added the code to my functionality plugin and it works great!

  4. Thanks.Help me much.Why you dont share more trick about wordpress?

  5. Hi, this is great, but it seems to insert an extra line break between each line in the gist. The line numbers on the left are correct, but the gist itself extends way beyond them. It does it here on your site, and also when I try it on mine. Any ideas what might be causing that?

Leave a Reply

Your email address will not be published. Required fields are marked *