As we all know, when you need to send an email with some Mathematica code, the practice is as follows:
Select a cell, Cell-> ConvertTo → INPUT FORM, then COPY AS TEXT
Then paste the code into email or any other exchange medium.
The only problem with the above is that when the text from the email is copied to the other end and pasted back into the Mathematica notebook, the code will no longer be displayed as it was in the original form (before conversion to INPUT FORM).
Because when one inserts the text copied from the letter into the Mathematica notebook, it becomes a standard form cell. Everything is good, except for the original formatting of the code, everything is lost.
Try, if you didn’t, convert the cell to INPUT FORM, and the code will change the form, and I could not find a way to return the original form to this operation.
Is there a way to write Mathematica code in the text, of course, so that it retains the same shape and looks the same as it was originally when it was in standard form before conversion?
Thanks --Nasser
Nasser
source share