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?
Need an editor from which I can paste to MSWord and get also line numbers
Collapse
X
-
Tags: None
-
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. -
-
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
Comment