Forum Moderators: coopster
I have a simple 2 way chat page setup where a user inputs text into a textarea and then my php script inserts it into mysql. What i need is a way to display these messages in a textarea that allows me to use different colors for each message.
It is impossible to format text output to a html textarea as you can only set the font color once in the textareas main tag and you cant use span or any php or html attributes in the text area.
Is the something similar to a textarea that allows outputing different colored text without using java or javascript and only use php?
I just need a way to output different colored text to a scrollable box. I would prefer not to use frames.
Thanks for any suggestions.
You can do some other things like formatted "click to edit" text where when you click on it, it opens a textarea but otherwise displays normally, but that's JS-driven obviously.
Are you worried about the users who have JS disabled, or users who don't want to wait for the download for the fairly hefty RTE? I know TinyMCE in the next release will have built-in JS compression, so that should ease things a bit. I believe the other open source one that has buzz lately (theg or thug or something like that) has or is planning to soon have JS compression as well.