Click to See Complete Forum and Search --> : Formatting HTML in Word
sabatier
03-16-2008, 06:14 PM
Hi can anyone tell me what's the best way to paste HTML/PHP code into a Word document so that the the colours and general layout stay the same? Is there any program that'll do it for me?
If I just copy and paste directly, it's messy and unreadable.
Any help appreciated,
sabatier
felgall
03-16-2008, 08:18 PM
Try opening the HTML with Word rather than pasting it into a document that is already open.
eelriver
03-17-2008, 12:22 AM
OpenOffice will do it. Select Format --> Styles and Formatting --> Source text;
then put the cursor where you want it and Paste. Make sure font color is on automatic.
Word might have the same feature, you'll have to look.
stroveman
03-17-2008, 04:20 AM
I tried with MS Word, but it not work. Why?
Try this:
Open the HTML page with Word. Save it as a .DOC file. Insert that DOC file into your working Word document.
You might not get the similar aspect, because the formats HTML and DOC are not so compatible, but you may handle later the insertion.