Saturday, January 23, 2016

New tool to embed git source code is now available at DinkLabs

I have created a new helper tool quickly generate the markup to embed a gist in my blog in DinkLabs Tools Section

Instead of manually typing, I can now paste the gist url and get the markup. It also shows a preview.

Special thanks goes to original Gist-Embed author Blair Vanderhoof.

In order this to work, you should have the following scripts in your blog.

 <head>
    <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
    <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/gist-embed/2.4/gist-embed.min.js"></script>
  </head>

ToDo:
  •  Add customization options