Using Cut and Paste
Code examples are included throughout this guide. When copying and pasting code into Swift MEAPâ„¢, note that hidden characters might be inserted which might result in the code not executing correctly.Â
Code pasted between applications might not work in Swift MEAPâ„¢.
Â
For example, copying code from Microsoft Word and other programs can insert hidden characters that will not be supported in the coding application. These characters can include carriage returns, blank spaces, whitespace characters, other formatting information, and so on. You might not be able to view these hidden characters nor receive any warnings about them, but the code will not execute correctly.
If you are using an application to write your code, then it is recommended that you use one of the following option before using the copy and paste feature to insert the code into Swift MEAPâ„¢:
- Enable the viewing of all hidden characters.
- Pass through a text only editor such as Notepad.