# How do you highlight code in a <pre> block?

Is there a way to highlight code syntax in a <pre> block?

In this post, I had originally inserted my code using a <pre> block, but the code was not highlighted. After indenting every line by four characters the highlighting worked. I would include an example here, but I couldn't get highlighting to work on Code Review Meta.

The highlighting will work if you use <pre><code> instead of just <pre>.