Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
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?
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
Syntax Highlighter and Google Prettify does not support MATLAB Syntax highlighting,
Required, but never shown