How do I get unmodified text content from the clipboard?
If you copy the following into the clipboard and use ClipboardNotebook[]
\[IndentingNewLine]
is interpreted as \n
:
f[\[IndentingNewLine]]
and run
FullForm@Catch[
NotebookGet@ClipboardNotebook[] /.
Cell[r_, ___] :> Block[{}, Throw[r, tag] /; True];
$Failed, tag]
"f[\n]"
Apologies if there is something in alternative to ClipboardNotebook
, I haven't found it.
Paste Special ► Plain text
, right? $\endgroup$ – Alexey Popkov Feb 26 '16 at 22:24f[\[NewLine]]
$\endgroup$ – Jason B. Nov 1 '16 at 22:06