Multiline Strings is an actively used design pattern.

?Years Old
  • Multiline Strings does not currently rank in our top 50% of entities I track
  • I have 12 facts about Multiline Strings. what would you like to know? email me and let me know how I can help.

Languages without Multiline Strings include json

Languages with Multiline Strings include javascript, php, python, ruby

Example from javascript:

const lines = `one
two`

Example from php:

$xml = <<<XML
l
vv
XML;

Example from python:

template = """This is the first line.
This is the second line.
This is the third line."""

Last updated September 6th, 2019