Syntax Highlighter

Paste your code, pick the language, click Copy Highlighted, then paste into Word with full colours, fonts and line numbers.