PDA

View Full Version : PHP code



Luckyrare
28-01-2006, 11:52 AM
Hey,

What is the PHP fuction for the PHP colour text like it does on PHP editers and forums.

EG)


<?php
print("Like this, see how the parts of the php have there own colour");
?>
I asked Mentor ages ago and he told me, but I have deleted all my PMs so I no longer have it :P

Dont bother reply saying stuff like

<font color="red"> ect.


I only want the function and nothing else. No tables or anything

:Blob
28-01-2006, 12:05 PM
I always thought you just put <font color=\"red\">Blah blah</font>

I didnt think there was a function.. ill look it up

Coding4Newbs
28-01-2006, 12:55 PM
u use html with php, if u dont know jus ask on msn, there is a php way but thts just gay :)

Tomm
28-01-2006, 01:05 PM
u use html with php, if u dont know jus ask on msn, there is a php way but thts just gay :)

j00 copyed my uber 1337 little status bars >:(

Splinter
28-01-2006, 01:17 PM
<?php show_source("$file.php"); ?>

Luckyrare
28-01-2006, 02:22 PM
Yes, thats what I am looking for.


I think Ive found it :)


highlight_php
Thanks spliter also :P

Splinter
28-01-2006, 02:27 PM
yes thats probably made for strings etc. :P good luck

Luckyrare
28-01-2006, 02:48 PM
edit) I found that code via viewing the source on php.net, they must have just added that function for there server.

the function is
highlight_string


Thanks anyway, thread closed

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