How to export highlighted text to Word/rtf/etc.

General questions about using TextPad

Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard

Post Reply
dcrocker
Posts: 7
Joined: Fri Nov 14, 2003 9:31 am
Location: UK
Contact:

How to export highlighted text to Word/rtf/etc.

Post by dcrocker »

I'm preparing an article for a newsletter that is produced in PDF via Word. I need to include some program extracts in it, with syntax highlighting. Is there any way I can load the program source file in TextPad (which will syntax-highlight it), then either export the file to DOC or RTF format, or copy the text to the clipboard in a way that will preserve at least bold and italic highlightin when I paste it into Word or WordPad?
David Crocker
dcrocker
Posts: 7
Joined: Fri Nov 14, 2003 9:31 am
Location: UK
Contact:

Post by dcrocker »

I've found one way to do this now, although it is a bit clumsy:

1. Open the file in TextPad and select the required text
2. Use Edit -> Copy Other -> As a HTML page
3. Create a new, empty document and paste the copied text into it
4. Save the new document as an HTML file
5. Open the HTML file in a browser
6. Select the text in the browser and copy it to the clipboard
7. Paste into Word

Is there an easier way?
David Crocker
Thomas Schremser

Post by Thomas Schremser »

dcrocker wrote:Is there an easier way?
Unfortunately not. But you can vote for this feature here.
Post Reply