0 Comment
  1. Browse to https://gist.github.com/
  2. Add a Gist Description (optional)
  3. Add a filename with an extension (extension will be used to add syntax highlighting)
  4. Add your code snippet which need to be added to your blog post
  5. Click “Create Public Gist” button at the botton
  6. Click on the “embed” link and copy the script generated
  7.  Paste the script where you need to add the code snippet
  8.  Make sure to select the option “Interpret typed HTML” under Post Options -> Compose Settings 
Here is how an example Java code looks like after this 8 Steps above,
 

Post a Comment

 
Top