Monday, May 2, 2016

Adding code blocks to Blogger

While working on my blog, I quickly discovered a need to provide quick highlighting to code snippets. While the facility is in blogger to create custom HTML, I'm quite lazy and searched for a way to make life easier.
I found this following article, and it led me to a couple of great resources for automating syntax highlights, etc.

Reference: How to insert code blocks in Blogger posts

Have a read of the above post and then try out one of the following two sites:



Here are some examples:
  • Hilite - bash

  • sudo apt-get install apcupsd

  • Markup - slush and poppies

  • sudo apt-get install apcupsd