2

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

alt text

metal gear solid
  • 8,802
  • 55
  • 119
  • 182
  • 1
    see: http://superuser.com/questions/60760/syntax-highlighting-in-microsoft-office-word (as word is normally used as the editor for outlook mail...) – fretje Mar 29 '10 at 07:17

1 Answers1

3

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.

Hugh Allen
  • 9,820
  • 6
  • 34
  • 42
  • 2
    Vim and emacs can do this also. In vim you use :tohtml, in emacs, use the htmlize package. – DaveParillo Mar 29 '10 at 05:15
  • 2
    Notepad++ offers the functionality to insert line numbers into the text in an additional step. Maybe Editplus can do the same. – foraidt Mar 29 '10 at 06:00