PDA

View Full Version : PHP code box...



Luckyrare
22-10-2005, 08:44 PM
I am editing cutenews to add
tags!

How can I do it coloured co-ordinated...

Like vb, and other forums use...

eg...

[php]<?
echo "Like this?";
?>
How can I do this on a normal non-cutenews page?
And (If you no) how can I do this on cutenews page?

Thanks

If you don't understand feel free to say...

Mentor
22-10-2005, 08:51 PM
I looked for thise once, its actaly pretty easy with php, as you dont have to lol, php acatly conatinsa function to do it for you :D

highlight_string(' CODE TO HIGHLIGH HERE ');

or more useful

highlight_string($variable_containg_code);

hope that helps

Luckyrare
22-10-2005, 09:24 PM
Yes, that should help.

Thanks mentor

Want to hide these adverts? Register an account for free!