Top 1,000 Features Creators Resources Blog Explorer Download
GitHub icon

Multiline Strings

< >
Example from 1 languages: JavaScript
const lines = `one two`
Example from 1 languages: Python
template = """This is the first line. This is the second line. This is the third line."""
Example from 1 languages: PHP
$xml = <<<XML l vv XML;
Example from 1 languages: Elixir
template = """ This is the first line. This is the second line. This is the third line. """
Example from 1 languages: C3
String s = `this string is multiline`;
Example from 1 languages: Jule
`Multiline strings is available in Jule with raw strings`
Example from 1 languages: Speedie
"hello you beauty"
Example from 1 languages: Boron
{{ Line 1 Line 2 }}
Example from 1 languages: Ion
( '''hello ''' // Sexp with one element '''world!''' ) ("hello world!") // The exact same sexp value // This Ion value is a string containing three newlines. The serialized // form's first newline is escaped into nothingness. '''\ The first line of the string. This is the second line of the string, and this is the third line. '''
*

Languages with Multiline Strings include JavaScript, Python, Ruby, PHP, Elixir, C3, progsbase, Jule, Speedie, Aardvark, Boron, Ion

*

Languages without Multiline Strings include JSON

*

View all concepts with or missing a hasMultilineStrings measurement

View source

- Build the next great programming language About Acknowledgements Extensions Day 630 Donate feedback@pldb.io