Here are the five easy steps to do this using GitHub:
- Go to https://gist.github.com/
- Put appropriate file name in the name this file... area. Make sure to put correct extension, so that GitHub will show proper syntax formatting.
- Paste the code & click on Create Public Gist button
- Copy the url from the Embed this gist area. Eg: <script src=\"https://gist.github.com/abcd.js\"></script>
- Paste it simply in your blog. That's it guys!