Logo

Programming-Idioms

  • Dart
  • Elixir
s = ~S"""
This will print multiline
and escape char like \G
"""

s = """
multiline
heredoc
"""

Triple-quotes starts a heredoc.
s = "Spanning
string
works"
var s = """A
multi-line
string""";

Triple double quotes.
var s = '''A
multi-line
string''';

Triple simple quotes.
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...