How to display code in css?

I’ve seen on various coding sites. I’m revising my personal site and I’d like to have a way to highlight code. Does anyone know of a good tutorial that shows how to do this?

Hi,
Here are a few links I had in my bookmarks though a google search may turn up some more results.

http://www.webresourcesdepot.com/11-syntax-highlighters-to-beautify-code-presentation/

Here is an online syntax highlighter
http://tohtml.com/

Thanks a bunch!