katerina Posted October 7, 2008 Share Posted October 7, 2008 Hi, I have a project and I have to paste my code in my word document. I use dreamweaver cs3, I do copy and paste in word document but the text is not colored like dreamweaver. Is thera any way to do this ? I mean for example the tag <?php in dreamweaver is colored red, but when I paste it on word I take as result black. Quote Link to comment https://forums.phpfreaks.com/topic/127443-help-for-pasting-colored-php-and-html-code/ Share on other sites More sharing options...
wildteen88 Posted October 7, 2008 Share Posted October 7, 2008 You'll need to use a Highlighter service which will highlight your code. You should then be able to copy the highlighted text straight into Word. Here's such a service: http://www.phphighlight.com/ Quote Link to comment https://forums.phpfreaks.com/topic/127443-help-for-pasting-colored-php-and-html-code/#findComment-659310 Share on other sites More sharing options...
katerina Posted October 7, 2008 Author Share Posted October 7, 2008 Thank you it is perfect! Quote Link to comment https://forums.phpfreaks.com/topic/127443-help-for-pasting-colored-php-and-html-code/#findComment-659362 Share on other sites More sharing options...
Barand Posted October 7, 2008 Share Posted October 7, 2008 Looks like it's doing <?php $str = "<?php $str = 'abcdefg'; $ex = str_split($str); echo join ('', array_splice($ex, 2)); ?> "; highlight_string($str); ?> Quote Link to comment https://forums.phpfreaks.com/topic/127443-help-for-pasting-colored-php-and-html-code/#findComment-659422 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.