The prospect of this challenge is:
- If your program is run normally, all of the code in the speech marks (
"- double quotes) should be printed.
- If your program is wrapped in double quotes (in turn inverting the speech marks), the code that is normally not in quotes should be printed.
Let's say you have the following code:
fancyStuff("myCode"); "I like".isGreat();
If I run it, I would expect an output of:
myCode I like
However, if I wrapped it in quotes, I would get:
"fancyStuff("myCode"); "I like".isGreat();"
When this code is run, the expected output would be:
fancyStuff( ); .isGreat();
Obviously, the above example is not a functional response in any language. Your job is to write the code that performs in this way.
- Standard loopholes apply.
- The printed values, in both quoted and unquoted forms, must be non-empty, or consist solely of whitespace. This also means that all programs must include at least one set of quotes.
- However, trailing/preceeding whitespace is allowed.
- No looking at your own code, required file names, etc.
- Unmatched quotes are disallowed
- If there are multiple strings, they can either be printed as newlines (as in the example), or in some other human-readable way - no arrays or objects
- This is code-golf, so shortest answer in bytes wins.