TLF text word-wrap - actionscript-3

suppose I have added a TLF text named 'testTLF' to my app and it can contain 6 characters per each line and word-wrap is also enabled ... now I append this text to it:
testTLF.appendText("abc(ijklm");
the problem is that it doesn't fulfill each line with 6 characters but it shows something like this:
abc
(ijklm
while what I want is this:
abc(ij
klm

In the Properties panel, expand the "Advanced Character" section and change the value of Break to Any.

Related

select text and hint other same text

When I select Button, other line "Button" surrounded by rectangle, like this:
When I select Button, other line "Button" don't have rectangle, like this:
word_separators remove ".:"
"word_separators": "/\\()\"'-,;<>~!##$%^&*|+=[]{}`~?"
how to control rectangle
This has nothing to do with plugins. The auto-highlighting functionality only works for selecting whole words, meaning they are surrounded by word boundaries (\b in regex-speak). When you remove . and : from "word_separators", those characters are no longer treated as word boundaries, and Button in the line
ccui.Button:create(string,string,string,int)
is no longer selected. Easy fix: add . and : back to "word_separators", so you get something like this:

How to make bold only 1 line of submit value amongst several lines

I have input submit value in 2 lines. I referred stackoverflow link and was able to get input value in 2 lines. Now i want is to make text bold only for 1 line.
For eg: Input value text is shown as
line 1
line 2
I want to make only line 2 as bold.
Any help is really appreciated.
You can use a button tag instead:
<button name="test">line 1<br /><strong>line 2</strong></button>
Example

format text in textarea

I need to display the text retrieved from the database in the <textarea> tag. But the thing is that i get this text from db with html tags, like:
The line number 1<br>
The line number 2<br>
The line number three<br><br>
But when i do:
<textarea>mytext</textarea>
Inside the textarea box i get exatly the same text will all the tags, like
The line number 1<br>
The line number 2<br>
The line number three<br><br>
htmlspecialchars didn't help. It just made it to display entities instead of formatted text, without any tags as if it was show on the web page
What I need is just to show formatted text without possibility to edit it.
How can I accomplish this?
You can use following:
I hope it helps.
I'm not sure why you have HTML tags like <br> in your database. Did you use nl2br before saving or something? You shouldn't do that. Replace them by fullworthy newlines and it'll work in the textarea.
If you intend to present them in a non-textarea afterwards, then you're allowed to use nl2br or like (only at the point of presentation!), or just use CSS white-space: pre instead.

How to make newline chars visible in HTML textarea?

I want to make newline (CR and LF) characters visible in a textarea field of an HTML form, as you can do in some text editors and IDEs. The user needs to be able to edit the text to insert newlines as well (i.e. create paragraph breaks), which should also show dynamically. Is there a way to do this?
TIA....
Steve
The only way to do this is to print out your own marker characters before/after each line break, using javascript.
The character reference for the pilcrow (¶) character is ¶.

How can I preserve leading white space in PDF export of reporting services

I have some leagacy reporting data which is accessed from SSRS via an xml web service data source. The service returns one big field containing formatted plain text.
I've been able to preserve white space in the output by replacing space chars with a non-breaking space, however, when exporting to PDF leading white space is not preserved on lines that do not begin with a visible character. So a report that should render like this:
Report Title
Name Sales
Bob 100.00
Wendy 199.50
Is rendered like this:
Report Title (leading white space stripped on this line)
Name Sales (intra-line white space is preserved)
Bob 100.00
Wendy 199.50
I've not been able to find any solution other than prefixing each line with a character which I really don't want to do.
Using SQL 2005 SP3
I googled and googled the answer to this question. Many answers included changing spaces to Chr(20) or Chr(160). I found a simple solution that seems to work.
If your leading spaces come from a tab stop replace "/t" with actual spaces, 5 or so
string newString = oldString.Replace("/t"," ")
In the expression field for the textbox I found that simply adding a null "Chr(0)" at the beginning of the string preserves the leading spaces.
Example:
=Chr(0) & "My Text"
Have you tried non-breaking spaces of the ASCII variety?
=Replace(Fields!Report.Value, " ", chr(160))
I use chr(160) to keep phone numbers together (12 345 6789). In your case you may want to only replace leading spaces.
You can use padding property of the textbox containing the text. Padding on the left can be increased to add space that does not get stripped on output.
I have used this work around:
In the Textbox properties select the alignment tab.
In the Padding option section edit the right or left padding(wherever you need to add space).
If you need to conditionally indent the text you can use the expression as well.