Skip to content

cotrVarMultiString

Creates a multi-line string variable

Aliases:

  • cotrVarMultiString
  • multiString
  • variableMultiString
  • multiStringVariable
  • multilineText

go

var variableName = `
Line 1
Line 2
Line 3
`

java

String myString =
"Line 1" +
"\nLine 2" +
"\nLine 3";

javascript

let myString = `
Line 1
Line 2
Line 3
`;

javascriptreact

let myString = `
Line 1
Line 2
Line 3
`;

php

myString = <<<EOT
Your string here
EOT;