473,396 Members | 2,024 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,396 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 1698
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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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: 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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.