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
21
votes
3 answers

Scala Regex enable Multiline option

I'm learning Scala, so this is probably pretty noob-irific. I want to have a multiline regular expression. In Ruby it would be: MY_REGEX = /com:Node/m My Scala looks like: val ScriptNode = new Regex("""""") Here's my match function: def…
ed.
  • 2,696
  • 3
  • 22
  • 25
20
votes
2 answers

make nstextfield single line

how to make NSTextField really single line? I created a text field programmatically. when the return key is pressed, all text is selected. but I can still paste multiple lines of text. And when I press Arrow-right or Arrow down, it scroll to the…
Jensen
  • 1,653
  • 4
  • 26
  • 42
20
votes
3 answers

Multiline string literal in Matlab?

Is there a multiline string literal syntax in Matlab or is it necessary to concatenate multiple lines? I found the verbatim package, but it only works in an m-file or function and not interactively within editor cells. EDIT: I am particularly after…
robince
  • 10,826
  • 3
  • 35
  • 48
20
votes
4 answers

WPF Multiline TextBox for large content

In a WPF application, I want to build a "Find in Files" output pane, in which I can stream large quantity of text, without re-allocating memory at each line, like the TextBox would do. The WPF TextBox has a single Text property which stores a…
decasteljau
  • 7,655
  • 10
  • 41
  • 58
20
votes
2 answers

Inserting multiline text in a csv field

I want to insert a multiline text data in a CSV field. Ex: var data = "\nanything\nin\nthis\nfield"; var fields = "\"Datafield1\",\"Datafield2:"+data+"\"\n"; When I save fields into a csv file and open it using MS Excel, I get to see only the first…
Tabrez Ahmed
  • 2,830
  • 6
  • 31
  • 48
19
votes
6 answers

FFmpeg drawtext over multiple lines

I have the code: import subprocess , os ffmpeg = "C:\\ffmpeg_10_6_11.exe" inVid = "C:\\test_in.avi" outVid = "C:\\test_out.avi" if os.path.exists( outVid ): os.remove( outVid ) proc = subprocess.Popen(ffmpeg + " -i " + inVid + ''' -vf…
Jay
  • 3,373
  • 6
  • 38
  • 55
19
votes
4 answers

std::regex, to match begin/end of string

In JS regular expressions symbols ^ and $ designate start and end of the string. And only with /m modifier (multiline mode) they match start and end of line - position before and after CR/LF. But in std::regex/ECMAscript mode symbols ^ and $ match…
c-smile
  • 26,734
  • 7
  • 59
  • 86
19
votes
4 answers

Cannot get regular expression work correctly with multiline

I have a quite big XML output from an application. I need to process it with my program and then feed it back to the original program. There are pieces in this XML which needs to be filled out our replaced. The interesting part looks like…
Biri
  • 7,101
  • 7
  • 38
  • 52
18
votes
2 answers

How do I search and replace across multiple lines with Perl?

$ perl --version This is perl, v5.10.1 (*) built for x86_64-linux-gnu-thread-multi $ echo -e "foo\nbar" > baz.txt $ perl -p -e 's/foo\nbar/FOO\nBAR/m' baz.txt foo bar How can I get this replacement to work?
Gabe Kopley
  • 16,281
  • 5
  • 47
  • 60
17
votes
4 answers

Multi-line text-views alignment to their baseline (ConstraintLayout Android Studio)

I have three TextViews "hi", "x" and "Hello World" which I would like to align in the bottom of the Hello World text (ie hi_x_World). Hello World is just one line but both layout_width and layout_height are set to wrap_content. They have different…
17
votes
6 answers

JavaScript Multiline String

The question is: What is the JavaScript method to store a multiline string into a variable like you can in PHP?
luca
  • 36,606
  • 27
  • 86
  • 125
17
votes
7 answers

How can I change the size of a multi-line editor-field?

I'm working on an MVC project using C#. Right now, I'm trying to customize my views a little, and I'd like to make the text boxes bigger. I followed the suggestions in this question to move from a single-line to a multi-line text field: Changing…
White Island
  • 2,571
  • 4
  • 17
  • 13
17
votes
1 answer

string variable not substituted in multi-line string

Here is the code/output all in one: PS C:\code\misc> cat .\test.ps1; echo ----; .\test.ps1 $user="arun" $password="1234*" $jsonStr = @" { "proxy": "http://$user:$password@org.proxy.com:80", "https-proxy":…
deostroll
  • 11,661
  • 21
  • 90
  • 161
17
votes
8 answers

How do I set a textbox to multi-line in SSRS?

I have a report with many fields that I'm trying to get down to 1 page horizontally (I don't care whether it's 2 or 200 pages vertically... just don't want to have to deal with 2 pages wide by x pages long train-wreck). That said, it deals with…
Pulsehead
  • 5,050
  • 9
  • 33
  • 37
16
votes
4 answers

How to edit multiline strings in Android strings.xml file?

I have several cases where my string in strings.xml is quite long and has multiple lines done with \n. Editing however is quite annoying since it is a long line in Eclipse. Is there a better way to edit this so it looks like it will be presented…
user387184
  • 10,953
  • 12
  • 77
  • 147