Is it possible to format specific text within a textarea? For instance, if I wanted to display html code within a textarea, but the HTML code would be a different color than the regular text... is this possible?
Longhaired Genius
4:39 pm on Apr 28, 2005 (gmt 0)
I don't know. but if you're prepared to go to the trouble of formatting the displayed code, why not do it on the page? Just use < > for the angle-brackets and you're ready to go.
Welcome to Webmaster World.
tedster
5:28 pm on Apr 28, 2005 (gmt 0)
With a textarea, you can style the element itself, or you can create a class/id that you use for just some of the textarea elements on your site. But any rules must apply to the entire textarea element - there's no way to style just a portion of textarea content.