# Copy string with markup so it looks good on input

How can I copy a string with a bunch of *Box expressions without it blowing up into the raw expression?

text = Integrate::usage
(* Nice looking String *)

(* String *)


After copying the output and pasting it into an input cell it looks like

 "\!\(\*RowBox[{\"Integrate\", \"[\", RowBox[{StyleBox[\"f\", ....


Same thing happens when evaluating in place, so how can I do this without retyping the entire expression?

-
Try CellPrint[Cell[BoxData[Integrate::usage], "Input"]] then you can mark it with " " and such string behaviour is what you need. But I'm struggling with doing this automatically... ;p – Kuba Nov 7 '13 at 19:39
@Kuba Good enough for my needs, thanks :) – ssch Nov 7 '13 at 19:48
Another possibility is Copy as->Plaint text (Ctrl+Shift+c). Or copy without the first and the last characters. – ybeltukov Nov 7 '13 at 21:03
@ybeltukov Copy without first and last works great thanks! Plain text copy strips some formatting though. – ssch Nov 7 '13 at 21:06