Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to color code output of a textbox 1

Status
Not open for further replies.

martinb7

Programmer
Jan 5, 2003
235
GB
Hi, i was wondering how you could color code the output of a textbox.

e.g. if the textbox contained <?php how could you make it change fontcolor to red then display it on a page??

is it something to do with the str_replace() function??

any ideas??

thanx


Martin

Computing help and info:

 
sorry if it wasn't clear. what i want is something like the php.net website -
see how they color coded all the php functions etc??

i would like it so if in a textbox for example there was:

<?php
echo("Hi");
?>

when you submit a form, it goes to another page where it displays exactly whats in the textarea but color coded so <?php would be red for example.

any ideas?


Martin

Computing help and info:

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top