-5

Do you know how to apply color to individual keywords in textarea?

I want to place an underline instead of an alert in the textarea area for the banning

  • 3
    please elaborate or show us some examples and what you have tried so far – Gowtham Shiva Dec 05 '17 at 07:22
  • Welcome to Stack Overflow. Please read [How do I ask a good question?](https://stackoverflow.com/help/how-to-ask) and [What topics can I ask about here?](https://stackoverflow.com/help/on-topic). Research, try something, add your code & point your problem. – pirho Dec 05 '17 at 07:27
  • As an example, I would like to tell you the color when I type a banner in the textarea – Jin chungho Dec 05 '17 at 07:31
  • 2
    Possible duplicate of [Is it possible to have several different textcolors in one textarea?](https://stackoverflow.com/questions/3435167/is-it-possible-to-have-several-different-textcolors-in-one-textarea) – Patrick Hund Dec 05 '17 at 07:34
  • I would like to add color for keyword words only in the textarea area – Jin chungho Dec 05 '17 at 07:37

1 Answers1

0

Sorry, but you really can't.

As <input> are self closing, they cannot accommodate any tags like <span> to add individual properties to.

You can however use some hacks.

Some Hacks

nikamanish
  • 662
  • 4
  • 17