Top 1K Features Creators Events Podcasts Books Extensions Interviews Blog Explorer CSV

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: Lil
lines:"one two"
Example from 1 languages: Scroll
plainText This is a multiline string
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, Lil, progsbase, Scroll, Jule, Speedie, Aardvark, Boron, Ion

*

Languages without Multiline Strings include JSON

*

View all concepts with or missing a hasMultilineStrings measurement

- Build the next great programming language Add Issues About Search Keywords Livestreams Labs Resources Acknowledgements