Jump to content

[SOLVED] PHP Documents


textbox

Recommended Posts

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

Link to comment
https://forums.phpfreaks.com/topic/53170-solved-php-documents/
Share on other sites

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

 

Link to comment
https://forums.phpfreaks.com/topic/53170-solved-php-documents/#findComment-262668
Share on other sites

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.

Link to comment
https://forums.phpfreaks.com/topic/53170-solved-php-documents/#findComment-262732
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.