Hi David,
I begin with Mathematica and try to convert a Mathematica Notebook to a Wolfram script .wls.
Unfortunately, if I apply a simple "Save as .wls script", the generated Wolfram script is commented everywhere (for all the lines)
So I am looking for uncomment only the instructions code lines and keep the real original comments.
How could I apply your suggestion of code snippet for my NoteBook ? Should I put it at the beginning of the Notebook and evaluate it, or at the end of the Notebook ? I don't know what to do.
I am on MacOS 12, I saw there was maybe a solution by select only the Input sections but I don't know there too how to proceed ? Maybe a shortcut exists on MacOS.
I would be grateful if you could help me