This is a discussion on How do you colour code the source in the answers on alt-php-faq.org? within the PHP Programming forums, part of the Web Development category; Hi all........ How do you colour code the source in the answers on alt-php-faq.org? Thanks & Regards, ...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
| |||
| Hi itbarota... <? //$source contains the answer. $nocode=0; if(stristr($source,"<code>")) { $code=1; do { list ($beginingtext,$code) = split ("<code>", $source,2); list ($source,$endtext) = split ("<\/code>", $code,2); echo nl2br($beginingtext); highlight_string($source); if(stristr($endtext,"<code>")) { $code=1; $source=$endtext; }else { $code=0; } }while($code==1); echo nl2br($endtext); echo "<P>"; }else { echo nl2br($source); } ?> |
![]() |
| Thread Tools | |
| Display Modes | |
| |
LinkBacks (?)
LinkBack to this Thread: http://www.discussweb.com/php-programming/3752-how-do-you-colour-code-source-answers-alt-php-faq-org.html | |||
| Posted By | For | Type | Date |
| How do you colour code the source in the answers on alt-php-faq.org? by nookli | This thread | Pingback | 11-10-2007 11:25 AM |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How do I keep people from stealing my source code and/or images? | oxygen | HTML, CSS and Javascript Coding Techniques | 3 | 10-18-2008 02:19 AM |
| How can I hide the JavaScript source code from "view source" function of the browser? | KiruthikaSambandam | HTML, CSS and Javascript Coding Techniques | 1 | 11-13-2007 09:17 PM |
| Can we generate a C++ source code from the binary file? | Sabari | C and C++ Programming | 1 | 07-30-2007 11:47 PM |
| block the source code | Alan | HTML, CSS and Javascript Coding Techniques | 5 | 04-23-2007 02:21 AM |
| Need help on not letting visitors view my source code | oyu2o | Web Design Help | 2 | 03-15-2007 03:43 PM |