How to export highlighted text to Word/rtf/etc.
Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard
How to export highlighted text to Word/rtf/etc.
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
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?
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