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

how to highlight things in a textarea?

Status
Not open for further replies.

Kicket

Technical User
Jun 15, 2002
155
0
0
US
i m pretty new to programming...
i have a textarea to output the answer i got from calculations...it's something like this.

answer.value=ans(1)+ans(2)+ans(3)+ans(4)....+ans(100)
ans(y)=codon(x)


DIM Codon
Redim Codon(65)
codon(0)="Phe "
codon(1)="Phe "
codon(2)="Leu "
...
codon(100)="blah "


okay.i want make the codon(25) and codon(35) displayed in a different color or highlight it. i just can't figure it out. or is there another way around to display those messages?
please help me..
 
I'm pretty sure that you cannot change the attributes of text in a textarea field. You might consider using:

<FONT COLOR=&quot;black&quot;>&quot;
<%

code to display codon vars 1-24

%>
<FONT COLOR=&quot;red&quot;>
<%

code to display codon var 25

%>

...

This could be a little lengthy depending on how many variables you would like to highlight, but would work OK..
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top