# SIP-XX: Dedented Multiline String Literals

**URL:** <https://contributors.scala-lang.org/t/sip-xx-dedented-multiline-string-literals/7197>\
**Category:** Language Design\
**Created:** [August 15, 2025, 7:07pm UTC](https://contributors.scala-lang.org/t/sip-xx-dedented-multiline-string-literals/7197 "2025-08-15T19:07:26Z")\
**Posts on this page:** 1\
**Showing post:** 19

<div class="post-metadata">

**Author:** ![devlaam](https://contributors.scala-lang.org/user_avatar/contributors.scala-lang.org/devlaam/32/2395_2.png) [@devlaam](https://contributors.scala-lang.org/u/devlaam)\
**Post date:** [August 17, 2025, 8:59am UTC](https://contributors.scala-lang.org/t/sip-xx-dedented-multiline-string-literals/7197/19 "2025-08-17T08:59:35Z")

</div>

> [@satorg](#):
>
> However, a more imortant one is that we couldn’t use `"` chars in such multiline strings without escaping,

Yes, we can! There are a few options, define that the string is closed only by a

- single-quote as only character on a line. So all other single-quote are interpreted as quotes in the string
- single-quote directly followed by an EOL character directly (then you must only escape this special case, if it occurs which is seldom)
- a tripple quote.

The latter combination would look like this:

```auto
val json = "
  {
    "one": 1,
    "two": 2
  }"""

```

and has the advantage we do not need to introduce other characters like ’ ’ ’ to define a string. Feels more natural!

---

_[View the full topic](https://contributors.scala-lang.org/t/sip-xx-dedented-multiline-string-literals/7197)._
