I have installed the SyntaxHighlighter Evolved plugin on this blog so that I can post code when the need arises. Here’s an example of the
factorial function in Python:
def factorial(n): if n == 0: return 1 else: return n * factorial(n - 1)
There are many good highlighting plugins to choose from, but this one is officially used by WordPress.com.