|
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).
|
|
Hi All,
I have a textarea in which I want the first line to be bold (and bigger font) as the first line contains the title. I tried the :first-line pseudo class, this works in IE, but fails in Firefox. Also in IE, enters doesn't work anymore, so I can...
Started by Henk on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
Specification at w3.org you can't apply the pseudo-element :first-line/:first-letter to a ....
Do you want to have a bolder font while typing into the textarea?
Nevertheless according to the css 2.1.
I don't get the sense of your intention.
|
|
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....
|
|
I have a single asp:textbox declared as follows:
<asp:TextBox ID="textBox1" class="myTB" runat="server" TextMode="MultiLine" Font-Names="Calibri" Font-Size="Small" Font-Bold="True" Height="175px" Width="725px" BorderColor="#76B900" BorderStyle="Solid...
Started by Matt on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Use....
GenerateQuery() { var textBox = document.getElementsByTagName("textarea"); textBox.value =" work("textarea")[0]; textBox.value =" work for crying out loud "; }
Anyways this isn't the best way to get a reference to a textarea.
|
|
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.
|