473,386 Members | 1,715 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

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 1697
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

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

Similar topics

11
by: Ed Suominen | last post by:
I'm thinking of implementing a real-time collaborative text editor in Python using Twisted. An initial plan is to use a Twisted PB server daemon that accepts user:password:file connections from...
0
by: Navin | last post by:
Hi, I am making a code editor in C# and want to display line numbers to the left. I have a UserControl with a ListView docked to the left edge and a TextBox that makes up the rest. I am able to...
2
by: Mike Bridge | last post by:
Hi- I'm editing text resources (for multilingual support) in resx files, and I find I waste a lot of time using the editor in vs.net---the editing functions are either buggy or else very poorly...
8
by: moondaddy | last post by:
I'm writing an app in vb.net 1.1 and I need to parse strings that look similar to the one below. All 5 rows will make up one string. I have a form where a use can copy/paste data like what you...
9
by: Marcelo | last post by:
Hi everybody, I am supra beginner in c, and I don't have any clue about the best editors for C. I am looking something like Eclipse for java, but for C programming and a good debugger (if there...
0
by: R Reyes | last post by:
Hi. I'm trying to paste copied (or at least I think it's copied) text from an MSWord document into the SAME MSWord document (not Excel). The code is below. It works up until "PASTE TEXT"....
20
by: mike | last post by:
I help manage a large web site, one that has over 600 html pages... It's a reference site for ham radio folks and as an example, one page indexes over 1.8 gb of on-line PDF documents. The site...
23
by: T. Crane | last post by:
Right now I'm using Notepad++. What are other people using? trevis
8
by: Red | last post by:
If auto-format is turned off in VS2008, there is apparently no way to indent a line. Under Tools->Options->Text Editor->C#->Formatting, there are three checkboxes. Unchecking those seems to cause...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.