Multiline Strings is an actively used design pattern.

?Years Old
  • Multiline Strings ranks in the bottom 50% of entities I track
  • I have 11 facts about Multiline Strings. just email me if you need more.

Languages without Multiline Strings include json

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

Example from javascript:

const lines = `one

Example from php:

$xml = <<<XML

Example from python:

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

Last updated June 22nd, 2019