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
35
votes
7 answers

Latex: how to break a line inside $$

I want to manually break a line inside $$: $$something something something else$$ I tried \\, \newline, and \linebreak but none work. Ideas?
Guy
  • 14,178
  • 27
  • 67
  • 88
33
votes
7 answers

Multiline TextBox multiple newline

I set a value for a Multiline Textbox like this. textBox1.Text = "Line1\r\n\r\nLine2"; But, only one line space in output. When I read the value of textbox, I read "Line1\r\nLine2"; Why does ASP.NET not support more then one lineline character?
selami
  • 2,478
  • 1
  • 21
  • 25
32
votes
3 answers

Issue warning for missing comma between list items bug

The Story: When a list of strings is defined on multiple lines, it is often easy to forget a comma between list items, like in this example case: test = [ "item1" "item2" ] The list test would now have a single item "item1item2". Quite…
alecxe
  • 462,703
  • 120
  • 1,088
  • 1,195
31
votes
5 answers

How to break a big lua string into small ones

I have a big string (a base64 encoded image) and it is 1050 characters long. How can I append a big string formed of small ones, like this in C function GetIcon() return "Bigggg string 1"\ "continuation of string"\ "continuation of…
bratao
  • 1,980
  • 3
  • 21
  • 38
31
votes
4 answers

Disable Word Wrap in an Android Multi-Line TextView

I am working on a Month View with an advanced swipe (requires current, next and previous to be loaded to allow each view to stick to your finger) which means I have many views which causes things to be a little bit slow. | |…
700 Software
  • 85,281
  • 83
  • 234
  • 341
31
votes
7 answers

HTML comments within comments?

Is there a way to comment multiple lines... which already have some comments in them? i.e. Hello world! …
Tony R
  • 11,224
  • 23
  • 76
  • 101
31
votes
4 answers

How to implement Multiline EditText with ActionDone button (without Enter button)

I have EditText which is used for entering contents on messages (emails, sms). I want message to be immediately posted on ActionDone button click. I use following code for this: message.setOnEditorActionListener((textView, i, keyEvent) -> { …
Ruslan
  • 1,039
  • 1
  • 9
  • 16
31
votes
5 answers

Multiline comment in Elixir

Most languages allow block comments, and multiline commands. For example, a multiline comment in HTML looks like the following: In Elixir, the closest thing I have found comes from EEx…
Nathan Basanese
  • 8,475
  • 10
  • 37
  • 66
31
votes
4 answers

How to code long JSON value strings as multiline?

IMPORTANT: I am not asking about rendering strings as multiline. I am talking about splitting a long string in a JSON into multiple lines in my source code when this string should logically be on a single line. In short: I want source line breaking…
Paul
  • 25,812
  • 38
  • 124
  • 247
30
votes
3 answers

How to create a multiline entry with tkinter?

Entry widgets seem only to deal with single line text. I need a multiline entry field to type in email messages. Anyone has any idea how to do that?
xiaolong
  • 3,396
  • 4
  • 31
  • 46
30
votes
3 answers

XML multiline comments in C# - what am I doing wrong?

According to this article, it's possible to get multiline XML comments -- instead of using ///, use /** */. This is my interpretation of what multiline comments are, and what I want to have happen: /** * * this comment is on line 1 in…
Dave
  • 14,618
  • 13
  • 91
  • 145
30
votes
8 answers

Create a multiline EditText programmatically

I am trying to create a multiline EditText by code. This is what I use: EditText txt = new EditText(this); lp = new LinearLayout.LayoutParams(LayoutParams.MATCH_PARENT, LayoutParams.WRAP_CONTENT,…
Ton
  • 9,235
  • 15
  • 59
  • 103
29
votes
4 answers

Vertical align an image and a multiline text

I´m trying to align an image and a text vertically: +-------------------------+ -- Viewport | Text text text | | +-----+ text text text | | |IMAGE| text text text | | +-----+ text text text | | text text text |…
bceo
  • 319
  • 1
  • 3
  • 5
28
votes
5 answers

Does Perl have the equivalent of Python's multiline strings?

In Python you can have a multiline string like this using a docstring foo = """line1 line2 line3""" Is there something equivalent in Perl?
Mike
  • 58,961
  • 76
  • 175
  • 221
28
votes
4 answers

How to process multiline log entry with logstash filter?

Background: I have a custom generated log file that has the following pattern : [2014-03-02 17:34:20] - 127.0.0.1|ERROR| E:\xampp\htdocs\test.php|123|subject|The error message goes here ; array ( 'create' => array ( 'key1' => 'value1', …
emonik
  • 1,540
  • 1
  • 17
  • 24