[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1791
  • Last Modified:

Underlining words in textarea

If I have a textarea that is built something like this:


<textarea name="testArea" id="testArea" cols=30 rows=5>This is my test textarea</textarea>


And I want to underline (or make red) a certain word in the textarea, is this possible?  If so, how would I do it?  I am trying to make my spellchecker be more user-friendly and I was thinking that if I could mark all the words I find misspelled in the textarea that might help.  Thanks in advance for your comments.
0
Caliguian
Asked:
Caliguian
  • 2
  • 2
2 Solutions
 
prakash_prkCommented:
try this

<textarea name="testArea" id="testArea" cols=30 rows=5 style="text-decoration:underline">This is my test textarea</textarea>
0
 
vincent_figoCommented:
A simple textarea cannot display formatted text. So you cannot underline text or color specific words... You will need a rich text editor to do this. This is way more advanced than a simple textarea though, so you might want to consider if this is truly nessecairy...

You can find a good and free rich text editor at:

http://www.freerichtexteditor.com/
0
 
vincent_figoCommented:
True prakash, but in that case you underline the whole text and i don't think that is what is needed... You can also color the whole text in a default color, but it's not possible to give only some words a default style...
0
 
prakash_prkCommented:
yes vincent :( . we must use a rich text editior.
0
 
CaliguianAuthor Commented:
Dang.  I was hoping single words could be decorated.  Thanks for the input guys.
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now