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
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
Share on other sites

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.

Link to comment
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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.