7

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 Dec 25 '11 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 Dec 25 '11 at 10:55
  • Already Answered on webapps.stackexchange.com/questions/6456/… – D S R Sep 11 '14 at 16:37
7

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.

  • Works like a charm - thanks – Praveen Sripati Dec 25 '11 at 10:54
6

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.

0

SyntaxHighlighter is not supported anymore.

Look at Highlight.js.

Here is a Quick Start Demo

0
  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, privacy policy and cookie policy

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