Tagged: Source code

Syntax highlighting on WordPress.com 0

Syntax highlighting on WordPress.com

In order to present readable and usable code here on WordPress.com without manually formatting it I searched the intertubes for an elegant solution – and found one here. [sourcecode language=”python” gutter=”false”] import math, string def readFile(file): """Reads a file from disk and returns its content as a...