Google Code Prettify

Google Code prettify can be used to highlight a piece of code that may be of the language C,Java,Html,Javascript,xml,CSS, etc in your webpage.
i.e If you want to publish your piece of code through Internet (as I do), this tool is going to be very much useful.
You can download it freely from here. How to use it