Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

php into MS Word?

Status
Not open for further replies.

JamesGMills

Programmer
Aug 15, 2005
157
GB
I am doing a report for my boss and want to be able to include php code in my word document. When i copy the code from dreamweaver it turns it into black anc white. Does anyone know how i can keep the nice colours?
 
Are you asking us how to style text copied in word? Then you'd better ask in the appropriate forum where they talk about word. I suggest forum68.
 
i see what you are asking. i don't think that the MSWord chaps will be able to help.

I do this quite a bit to print things out nicely for archiving (dreamweaver doesn't print in colour).

to make this work:
create a file called showsource.php
the file code should look like:
Code:
<?php
$file = "";//put file name here
highlight_file($file);
?>

then copy and paste the output into MS Word.

hth
Justin
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top