In most programming languages (like Java or Python) we use the "\" character at the end of a line to indicate that the code on the next line of documentation is a continuation of what should be executed as a single line of code. However, in Scala, if we use the "\" character, and the user, copies and pastes the two or more lines of code into the Scala interactive shell and tries to execute it, it fails.
How should someone writing scala code in a document, where the single command to run will not fit on one line of text, properly document the code and simultaneously support copy/paste?