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?

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

Here is an online syntax highlighter

Thanks a bunch!