Comparison of programming languages (strings): Difference between revisions

Content deleted Content added
Rust and Lua multiline
Multiline string: pre tag is more appropriate
Line 205:
! Language(s)
|-
| <pre><<EOF
| <code><<EOF<br />I have a lot of things to say<br />and so little time to say them<br />EOF</code>
I have a lot of things to say
and so little time to say them
EOF</pre>
| Yes
| Bourne shell, Perl, PHP, Ruby
|-
| <pre><<<EOF
| <code><<<EOF<br />I have a lot of things to say<br />and so little time to say them<br />EOF</code>
I have a lot of things to say
and so little time to say them
EOF</pre>
| Yes
| PHP
|-
| <pre>@"
| <code>@"<br />I have a lot of things to say<br />and so little time to say them<br />"@</code>
I have a lot of things to say
and so little time to say them
"@</pre>
| No
| Windows Powershell
|-
| <pre>"[
| <code>"[<br />I have a lot of things to say<br />and so little time to say them<br />]"</code>
I have a lot of things to say
and so little time to say them
]"</pre>
| No
| Eiffel
|-
| <pre>"""
| <code>"""<br />I have a lot of things to say<br />and so little time to say them<br />"""</code>
I have a lot of things to say
and so little time to say them
"""</pre>
| No
| CoffeeScript, Python, Groovy, Swift, Kotlin
|-
|<pre>"
|<code>"<br />I have a lot of things to say<br />and so little time to say them<br />"</code>
I have a lot of things to say
and so little time to say them
"</pre>
|No
|Visual Basic .NET (all strings are multiline), Rust (all strings are multiline)
|-
| <pre>r"
| <code>r"<br />I have a lot of things to say<br />and so little time to say them<br />"</code>
I have a lot of things to say
and so little time to say them
"</pre>
| No
| Rust
|-
| <pre>[[
| <code>[[<br />I have a lot of things to say<br />and so little time to say them<br />]]</code>
I have a lot of things to say
and so little time to say them
]]</pre>
| No
| Lua