Syntax Highlighting on Blogger with Github Gist

Here is the most convenient way to syntax highlighting on a blogger post..

  
       1. Go to https://gist.github.com/
       2. Create a gist with your code. Use 'Create Public Gist' button to make it public.
       3. Copy the embed script.
       4. Paste the link on your blogger post in HTML editing mode.

Above little chunk of code will look like in the box below using this script: 
<script src="https://gist.github.com/sayham-sjb/39d0587442addf2ec0bfd1498de2e2b8.js"></script>

Your's will look different since I've different CSS applied on mine. Click GIST to see original.


No comments:

Post a Comment

Grab The Button...

Grab the above button and add to your blog or website to get easy access to Virtual Species. Simply click the textbox, copy the code and paste where you want to see the button. That's it!