here document
■ shell
cat << "__END__"
usage : $0 [0-999... begin end clean -h -n -l -p]
__END__
: <<"__END_COMMENT__"
複数行にまたがる
コメントは
このように記述
__END_COMMENT__
■ c/c++
http://qiita.com/_meki/items/53db5976a041546eb8c4
std::cout << R"#("Hello, World(1)")#" << std::endl;
● raw string literal は他の文字列定数書式と組み合わせることができます。
R("...") で const char[ ].
LR("...)" で const wchar_t[ ].
u8R("...)" で const char[ ] (UTF-8).
uR("...)" で const char16_t[ ] (UTF-16).
UR("...)" で const char32_t[ ] (UTF-32).
例:
cout << u8R"##(<!DOCTYPE html>
<html lang="ja">
<head>
<meta charset="UTF-8">
<title>Hello</title>
</head>
<body>
Hello, World!!!
</body>
</html>
)##";