Logo

Programming-Idioms

  • Fortran
  • D
auto s = "One,
Two,
Three
";

Line endings and whites are included in the string
auto s = `line1
line2
line3`;

Wysiwyg strings: no escape sequences.
auto s = r"line1
line2
line3";

Wysiwyg strings: no escape sequences.
  s = "Hello &
      &World"

In character context, string literals must begin with an ampersand if split in multiple lines.
s : String := "Will this compile? " &
     "Oh yes it will";

I'm assuming this is what is meant by "consisting in several lines of text."

Use New_Line for line feeds.

New implementation...