I am using Google Blogger and would like to highlight the code. I tried a couple of ways, but not satisfied with the results.

Can anyone share how they have done it?

  • It would be great if you could list down what you've already tried.
    – Isxek
    Commented Dec 25, 2011 at 10:17
  • I tried it a couple of weeks back and didn't like the once I tried and don't remember the names also.
    – Praveen Sripati
    Commented Dec 25, 2011 at 10:55
  • Already Answered on webapps.stackexchange.com/questions/6456/…
    – D S R
    Commented Sep 11, 2014 at 16:37

4 Answers 4


Alex Gorbatchev's SyntaxHighlighter is one of the most commonly used by software-related blogs for code highlighting. It lists several blogs that provide steps how to integrate it with the Blogger service.


Try Google Prettify. This is exactly what is used on StackExchange sites.

There is also good tool here, that would generate a HTML block for you with some fancy formatting.


SyntaxHighlighter is not supported anymore.

Look at Highlight.js.

Here is a Quick Start Demo

  1. I like to embed code published in Gist, alternatively PasteBin
  2. I like also hilite.me: converts your code snippets into pretty-printed HTML format, easily embeddable into blog posts, emails and websites.

Syntax Highlighter and Google Prettify does not support MATLAB Syntax highlighting,

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.