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 wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

change color of specific words in textarea...HELP

Status
Not open for further replies.

codeone

Programmer
Mar 25, 2003
343
US
I am so desperate...

Can someone please give me a valid answer, I have posted this question three times now, in different ways, and no one knows how to do it, maybe I am explaining it wrong...

what I want to do is:

type some words in the textarea, for example: <Javascript>

and once the full string is typed, it ---> (<JavaScript>) would then turn red.

and if I typed: <Table>

once the full string is typed, it ---> (<Table>) would then turn green.

I am sure Javascript can do this...just how to do this is beyond me at this time...

so please help me out,

Code One


P.s. This is a client side project and would resemble the syntax coloring feature which comes with many HTML Editors.
 
no can do with <textarea>

you could put all the text in a <div> or <iframe> alternatively

=========================================================
-jeff
try { succeed(); } catch(E) { tryAgain(); }
 

>> Can someone please give me a valid answer, I have posted this question three times now, in different ways, and no one knows how to do it

Simple answer: It cannot be done with a textarea.

Dan
 
well how would I do it with a div box?

thanks

code one
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top