textbox Posted May 27, 2007 Share Posted May 27, 2007 Not so much a PHP technical problem, but; I have to do a write up containing all my code, and i would really like it if the code had the syntax highlighting you find in Dreamweaver, Notepad ++ and on here. Any idea what software i can use to achieve this? Ive tried MS Word, but to no avail! Any ideas would be great! Thanks Nick Quote Link to comment https://forums.phpfreaks.com/topic/53170-solved-php-documents/ Share on other sites More sharing options...
Diego17 Posted May 27, 2007 Share Posted May 27, 2007 I don't understand. You already named software with syntax highlighting. Why not use Dreamweaver or Notepad ++? Quote Link to comment https://forums.phpfreaks.com/topic/53170-solved-php-documents/#findComment-262667 Share on other sites More sharing options...
textbox Posted May 27, 2007 Author Share Posted May 27, 2007 Sorry, i need to present all my coding in a printed formed report. There will be some extended writing etc. I need to be able to write say a paragraph, then have an excerpt of coding to explain, i wish to have code highlighting when i explain this coding. Obviously, Notepad ++ and Dreamweaver are not usable for this purpose. Thanks Quote Link to comment https://forums.phpfreaks.com/topic/53170-solved-php-documents/#findComment-262668 Share on other sites More sharing options...
trq Posted May 27, 2007 Share Posted May 27, 2007 I don't think there is anything around that will do this specifically. One thing Ive done in the past was setup a wordpress blog with a syntax highlighting plugin, then you can use that to print. Quote Link to comment https://forums.phpfreaks.com/topic/53170-solved-php-documents/#findComment-262685 Share on other sites More sharing options...
wildteen88 Posted May 27, 2007 Share Posted May 27, 2007 Either take thorpe's advice, or to take a a screenshot of your code in Dreamwever/Notepad++ and copy 'n' paste it in to MS Word as an image. Quote Link to comment https://forums.phpfreaks.com/topic/53170-solved-php-documents/#findComment-262687 Share on other sites More sharing options...
ShogunWarrior Posted May 27, 2007 Share Posted May 27, 2007 Just create a PHP page with <?php highlight_string( 'CODE HERE' ); ?> When you want to put some highlighted code into your report in MS Word just paste your code into the "CODE HERE" part, run the page and copy the text into MS Word. Word will retain the formatting colors and voila you have syntax highlighted text in word. Quote Link to comment https://forums.phpfreaks.com/topic/53170-solved-php-documents/#findComment-262732 Share on other sites More sharing options...
textbox Posted May 27, 2007 Author Share Posted May 27, 2007 Thanks for that Shogun. However, it didnt work. Again however, saving things as .phps does work as Word retains the syntax highlighting copied in. Thanks everyone! Nick Quote Link to comment https://forums.phpfreaks.com/topic/53170-solved-php-documents/#findComment-262740 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.