Top "Multiline" questions

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

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 lua multiline literals
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 …

c# regex multiline
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 …

regex multiline ultraedit
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 …

wpf multiline textblock
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 …

html css image multiline vertical-alignment
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 …

perl multiline
Kotlin add carriage return into multiline string

In Kotlin, when I build a multiline string like this: value expected = """ |digraph Test { |${'\t'}Empty1; |${'\t'}Empty2; |} |""".…

kotlin multiline multilinestring
sed - Get only the replaced string from a multiline input & omit unmatched lines!

I want sed to omit all non-matching lines, and only output the replaced string (of the single/multiple intended line/…

regex sed replace multiline
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.…

ffmpeg line multiline drawtext
New Line \n is not working in JButton.setText("fnord\nfoo") ;

On a JButton, I want to list information on multiple lines. I tried \n as a new line character but …

java swing awt jbutton multiline