Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes HTML, CSS and JavaScript and the fly likes How to set the fontcolor and size for the selected text of text area ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "How to set the fontcolor and size for the selected text of text area ?" Watch "How to set the fontcolor and size for the selected text of text area ?" New topic
Author

How to set the fontcolor and size for the selected text of text area ?

Paul Phoby
Greenhorn

Joined: Sep 19, 2002
Posts: 13
How to set the fontcolor and size for the selected text of text area ?
I am using the below mentioned code for to select the text.
document.selection.createRange().text
Now I want to set font size, font color and bold to that selected string of text area.
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
You will not be able to change it do to the fact it is in a text area....you can not change the formatting for a part of a text area...all has to be the same.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to set the fontcolor and size for the selected text of text area ?