Possible Duplicates:
Syntax highlighting in Microsoft Office Word
How do I easily highlight the syntax of PHP code in Word?
When I send email to someone with source snippet then how to format source code like this type. with line number

Possible Duplicates:
Syntax highlighting in Microsoft Office Word
How do I easily highlight the syntax of PHP code in Word?
When I send email to someone with source snippet then how to format source code like this type. with line number

Some text editors will let you copy syntax-colored text as HTML. Editplus is one, using the menu Edit -> Clipboard -> Copy as HTML. It doesn't do line numbers though.