New answers tagged copy-as
1
Here's a version that doesn't require a temporary file.
Linux (needs xclip)
SetAttributes[copyUnicode, HoldAll];
copyUnicode[expr_] := With[{
stream = OpenWrite["!xclip -in -selection clipboard", CharacterEncoding -> "UTF-8"]
},
WriteString[stream, ToString[Unevaluated@expr, InputForm]];
Close@stream;
];
Example: executing the cell
...
Top 50 recent answers are included
