how to represent Long multi-line string

Is there anyway to avoid colons in every line?
I've seen something like
const char* text = LR"
.......
.......
......
";
is this possible in c++?
Raw string literals: http://www.stroustrup.com/C++11FAQ.html#raw-strings

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#include <iostream>
#include <string>

int main()
{
   const char* const cstr =
R"(`Twas brillig, and the slithy toves
  Did gyre and gimble in the wabe:
All mimsy were the borogoves,
  And the mome raths outgrabe.
)" ;

   const std::string str =
R"(
"Beware the Jabberwock, my son!
  The jaws that bite, the claws that catch!
Beware the Jubjub bird, and shun
  The frumious Bandersnatch!"
)";

    std::cout << cstr << str << '\n' ;
}

http://coliru.stacked-crooked.com/a/afeb96fc0aa620cc
thanks a lot!
Topic archived. No new replies allowed.