|
Is there any JS function that can change the color of certain text in a textarea?
For example, blar blar {blar} blar, {blar}, including { }, will be in blue. Other words will be in blank. In other words, all I need is a function that can change color ...
Started by David Gan on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
If you look at the editor here in SO, you write normal text inside... .
Perhaps you should inside a textarea, which makes it impossible to only change part of the text.
But, javascript is your friend.
You can't use a textarea to do that, per se.
|
|
I have a problem where a very tall <textarea></textarea> control doesn't fit on an A4 page when the web page is printed. On the web page inside a browser, the textarea displays just fine, but when I go to print it the bottom of the textarea...
Started by Sunday Ironfoot on
, 6 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
The styles being applied to textarea? Specifically do you have any print styles being applied (probably stylesheet
@media print { /* style sheet for print goes here */ textarea { overflow:visible }; }
Place;title></title> <....
|
|
According to this webpage , the htmlText property in TextArea can handle CSS text style if using span tag. I want to format multiple tags in my code. Something like:
var tags:TextArea = new TextArea(); tags.htmlText = "<span style='color: rgb(165, ...
Started by Jinru on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Tags.htmlText = "<font color="#a89433" size="10">street</font>, <font....
You can use the font tag absolute pixel size and relative (+2, -1 etc) size values.
Should be the name of a class specified in a StyleSheet object .
|
Ask your Facebook Friends
|
Form:
<form id="defineForm" method="POST" action="api/test"> <fieldset> <legend>Generale</legend> <input type="text" name="id" size="60" maxlength="60"/> <input type="text" name="descr" size="60"/> <textarea name...
Started by dfa on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
The easiest way is like this:
#id, #longDescr { font: inherit; width: 60ex; }
which will make them use....
Give them a width in pixels, you'll also need to ensure that they're using the same font, which by default they won't on many browsers.
|
|
This bug is hard to describe, but easily reproduced with the bottom code. Just copy, paste, and compile+run in Flex 3 and you'll see the problem. Anyone know of a work around?
Edit: Here is a link to a running demo: http://shiinaringo.se/hosted/flex/textarea...
Started by Jonny on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
When you click on the TextArea, I ....
Here is what I got:
<TEXTFORMAT LEADING="2"><P ALIGN="LEFT"><FONT FACE="Verdana text.
Green" will become part of the defaultTextFormat of the internal TextField of the TextArea).
|
|
Hello! I would like to ask somebody how i can determine what key was pressed in a textarea .... need to write a little javascript code.. a user type in a textarea and i need to write it in a while he writing so the keydown , keypress event handle this...
Started by Alex on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
Matching on the full text here */) { $myTextArea.css('color', 'red'); // changes the textarea fontWell, if you were using jQuery, you could do this given that the id of your textarea was 'ta':
$('#ta').keypress(function (evt) { var $myTextArea....
|
|
TextArea in flex doesn't render <TABLE></TABLE> .
I want to display text in textarea in two columns.
Column1 Column2 Row1: Data, data, data row1 Row2 longer: Data, data, data row2
Depending on text width in Column1 text in Column2 will be ...
Started by zdmytriv on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
You can use.
HtmlText support in flash/flex is very limited.
Number of space between datas?
TextArea is only good enough to render normal text with little formatting like font/color/indents etc.
|
|
Hello,
Ive used the following css code to align my form elements:
form { position:relative; } form input { position:absolute; left:11em; }
However, the textarea element is not aligned correctly with the rest of the elements. I tried the following, but...
Started by jimgh on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
The following code:
form { font: 11px Arial; } form textarea { font-size: 100%; font-family: inherit it's related to this bug about Firefox textareas and its font: http://stackoverflow.com.
|
|
I have a form in asp that does some javascript error checking them shows a preview of the form information before the user submits it to our database. To enable light formatting before submission we replace all of the line breaks with tags.
<textarea...
Started by Kristen Zirkler on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
I've always used vbcrlf instead of vbcr when I took data from a textarea that was stored in a database and wanted to show it as html....
You're only replacing carriage returns and not linefeeds, which are being displayed in the textarea-only.
|
|
Is there a simple way of getting a HTML textarea and an input type="text" to render with (approximately) equal width (in pixels), that works in different browsers?
A CSS/HTML solution would be brilliant. I would prefer not to have to use Javascript.
Thanks...
Started by Erik Öjebo on
, 10 posts
by 10 people.
Answer Snippets (Read the full thread at stackoverflow):
The text area default font is smallerYou....
By default an input area and a textarea have different font of it's font and the textarea is using the width of it's font.
To remember that em's are based on font size.
|