Questions tagged [multiline]

Text that spans more than one line is considered "multiline". Concerns about wrapping, spacing, techniques and best practices.

Text that spans more than one line is considered "multiline". Concerns about wrapping, spacing, techniques and best practices, as well as language and platform-specific techniques for displaying text in a multiline format.

1916 questions
60
votes
3 answers

How to assign multiple lines string in Powershell Console

When I do enter this in powershell Console $test=@' Test Test'@ And do enter several times, it keeps printing >> So I can never finish command. What to do ?
user310291
  • 36,946
  • 82
  • 271
  • 487
59
votes
2 answers

WPF Multiline TextBlock CenterAlignment Issue

I'm having an issue with multiline text blocks where it is not center aligning properly The text is coming like abcde\nabc This comes out abcde abc What I want is abcde abc This seems a simple thing and I would have thought that the…
John
  • 1,286
  • 2
  • 14
  • 22
57
votes
7 answers

Java swing: Multiline labels?

Possible Duplicate: Multiline text in JLabel I want to do this: JLabel myLabel = new JLabel(); myLabel.setText("This is\na multi-line string"); Currently this results in a label that displays This isa multi-line string I want it to do this…
bguiz
  • 27,371
  • 47
  • 154
  • 243
52
votes
2 answers

I can't write multiline codes in Coffeescript Interactive Mode(REPL)

When I typed multiline in coffeescript interactive mode, an error occrured. For example, I want to try the following code: kids = brother: name: "Max" age: 11 sister: name: "Ida" age: 9 This Error was displayed: coffee> kids =…
utwang
  • 1,474
  • 11
  • 16
51
votes
5 answers

Android and displaying multi-lined text in a TextView in a TableRow

I'm displaying a TableLayout with rows as follows:
Ken
  • 30,811
  • 34
  • 116
  • 155
50
votes
7 answers

PHP multiline string with PHP

I need to echo a lot of PHP and HTML. I already tried the obvious, but it's not working:
Matt
  • 1,803
  • 3
  • 16
  • 17
48
votes
3 answers

how can I display multiple lines of text on a button

My button's layout_width set to match_parent. In order to display multi lines on the button, I tried: insert '\n' into the text on button set Singleline false set Maxlines to 2 or 3 convert html from Html.fromHtml Nothing worked. '\n' showed up…
Tae-Sung Shin
  • 20,215
  • 33
  • 138
  • 240
48
votes
5 answers

Multi-line user input in iOS: UITextField vs UITextView

I need to show users a multi-line text input "box" with a height greater than the standard height of a UITextField. What the best or most correct approach should be?: Using a UITextField and change its height in code or by applying a certain height…
AppsDev
  • 12,319
  • 23
  • 93
  • 186
47
votes
4 answers

Multiline Textbox with automatic vertical scroll

There are a lot of similiar questions over internet, on SO included, but proposed solutions doesn't work in my case. Scenario : there is a log textbox in xaml
Jaded
  • 1,802
  • 6
  • 25
  • 38
46
votes
2 answers

Lua multiline comments past ]]'s

I'm trying to find out a way to use a multiline comment on a batch of code, but it keeps mistaking some syntax in it as a ]] and thinking I want it to end there, which I don't! --[[ for k,v in pairs(t) do local d = fullToShort[k] local col…
Jonathan Picazo
  • 975
  • 3
  • 13
  • 23
45
votes
3 answers

regex over multiple lines in Groovy

I have a multiple line string like following: END IF; EXECUTE IMMEDIATE ' CREATE INDEX #idx1 ON somename ( row_id, something)'; IF v_sys_error 0 THEN GOTO SQL_ERROR; END IF; I wish to capture the…
Omnipresent
  • 29,434
  • 47
  • 142
  • 186
40
votes
7 answers

Center Multi-Line Text on UIButton using IB

How do you center text line-by-line in a UIButton using Interface Builder? I am scouring the options and just don't see it. Here's the button:
sdknewbie
  • 659
  • 2
  • 9
  • 13
38
votes
4 answers

R: "Unary operator error" from multiline ggplot2 command

I'm using ggplot2 to do a boxplot comparison of two different species, as indicated by the third column shown below: > library(reshape2) > library(ggplot2) > melt.data = melt(actb.raw.data) > head(actb.raw.data) region expression species 1 …
soosus
  • 1,211
  • 4
  • 18
  • 27
35
votes
4 answers

How to do multiline UILabel in ios?

I'm dynamically populating the title (UILabel). Sometime it's bit too long and IOS squeeze the font to fit in the width. Is there a way to do multiline with using same font size?
HardCode
  • 2,025
  • 4
  • 33
  • 55
35
votes
10 answers

Replacing multiple blank lines with one blank line using RegEx search and replace

I have a file that I need to reformat and remove "extra" blank lines. I am using the Perl syntax regular expression search and replace functionality of UltraEdit and need the regular expression to put in the "Find What:" field. Here is a sample of…
Art
  • 1,519
  • 2
  • 13
  • 21