Tuesday, October 18, 2011

Testing code highlighter for blogger.

import math
printf "the square root of 2 is ", math.sqrt(2)

This is good! The code highlighter is from http://heisencoder.net/2009/01/adding-syntax-highlighting-to-blogger.html.

This is not the first time we applied this highlighter. It is used for example in our other blog , My Other Life as a Programmer.
Because Google is always trying to find ways to make blogs interesting, the CSS code should be inserted after any template css.
The code should be inserted as escaped html, and in case you need an HTML escaper, you can use the online tool at


1 comment: