SyntaxHighlighter Evolved

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.

Leave a Reply

Your email address will not be published.

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>