468,542 Members | 1,818 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,542 developers. It's quick & easy.

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

mikek12004
200 100+
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?
Nov 25 '09 #1
3 1543
Atli
5,058 Expert 4TB
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.
Nov 25 '09 #2
mikek12004
200 100+
that is a big help...still my biggest need is line numbers
Nov 26 '09 #3
Atli
5,058 Expert 4TB
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.
Nov 27 '09 #4

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

11 posts views Thread by Ed Suominen | last post: by
2 posts views Thread by Mike Bridge | last post: by
8 posts views Thread by moondaddy | last post: by
9 posts views Thread by Marcelo | last post: by
reply views Thread by R Reyes | last post: by
23 posts views Thread by T. Crane | last post: by
reply views Thread by NPC403 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.