Sitecore module for syntax highlighting
Please read my blog post. I explained how to install and use Sitecore.SyntaxHighlight module there.
http://www.cognifide.com/blogs/sitecore/syntax-highlight-module-for-sitecore/
Click to add a new code snippet or select the existing piece of code before, to load the code content into the editor. new syntaxhighlight button in RichText editor
A new window is decoupled from Sitecore (pure HTML and JS, no XML nor server-side logic), thus it is easy to port it onto other Sitecore versions, with a few style fixes.
You are able to highlight some lines, hide gutter (numbers) or start indexing from a different number (for example if yours shows a piece of code that is part of a bigger one).
Fit the code snippets to your needs. Choose a different theme if your page design do not match the default one.