Need an editor from which I can paste to MSWord and get also line numbers

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mikek12004
    New Member
    • Sep 2008
    • 200

    Need an editor from which I can paste to MSWord and get also line numbers

    In a MSword document I want to paste code with line numbers (and command coloring if possible) in order to make the readability easier, any text editor you know for this?
  • Atli
    Recognized Expert Expert
    • Nov 2006
    • 5062

    #2
    Hey.

    I don't know if Word supports this, and this being a M$ product, Word documents typically don't work well in applications other than Word.

    A bit of Googling turned this up though:
    Syntax highlighting source code in Word and PowerPoint

    Basically, use a text-editor that supports highlighting, and allows you to copy the highlighted text in RTF format. Then post the RTF text into Word.

    Comment

    • mikek12004
      New Member
      • Sep 2008
      • 200

      #3
      that is a big help...still my biggest need is line numbers

      Comment

      • Atli
        Recognized Expert Expert
        • Nov 2006
        • 5062

        #4
        Doesn't Word have a feature to create numerical lists?
        Couldn't you just post the highlighted code - as explained in the article - into Word, highlight the whole thing and hit the Numerical List button?

        Anyhow, it seems to me that the simplest way to achieve this would be to just snap a screen-shot of the text in a editor that shows highlighting and line-numbers, and then put the image into your Word document.

        Comment

        Working...