Github Gists providing feature to share code snippets / embed code in very comfortable way. Everything is easy and it's best for blog or custom websites to display embed code. You can see below is a code embed from public Gist of Github.
How to create embed code snippet using Github ?
- I'm going to share how can you embed your code on Github step by step.
- Signup on Github and verify your account.
- Login in your account and click on Gist link as below image.
- Now you can create your embed gist, enter description , name and your code. If you want change code view in different format then choose Language option as image below.
When your code work will finished click on secret or public Gist as per your need. Remember Secret Gist isn't available for everyone.
After that you can get your embed code using Embed URL option from right side.
All done, now paste Embed URL anywhere you want. Paste only in code view format in blog post.
I like Gist because one feature is really awesome, when you need to change on your code only edit on Github Gist and update. Every where code applied will auto change.
Let me know if you have any question or doubt. Thanks for giving your valuable time to read this article.