Quotes inside wysiwyg strings, or alternative solution?

2019-07-18 Thread Paul via Digitalmars-d-learn
Hi, I have searched, but can't find a solution. In C++ and Rust there is the option of enclosing a string in a sequence of chars (after R/r) to allow quotation marks in multiline string literals. What is the solution in D for wysiwyg strings (or similar) spanning multiple lines containing qu

Re: Quotes inside wysiwyg strings, or alternative solution?

2019-07-18 Thread Dennis via Digitalmars-d-learn
On Thursday, 18 July 2019 at 11:38:55 UTC, Paul wrote: What is the solution in D for wysiwyg strings (or similar) spanning multiple lines containing quotes and apostrophes? Take a look at: https://dlang.org/spec/lex.html#string_literals All string literals may span multiple lines. If you only

Re: Quotes inside wysiwyg strings, or alternative solution?

2019-07-18 Thread Paul via Digitalmars-d-learn
All string literals may span multiple lines. Ah, I didn't know that. Thanks for the detailed reply!