How do I format my string so someone can copy it from browser and paste it in excel and it comes out in columns?
"apples oranges pears"
comes out in excel as
----------------------------------------
| apples | oranges | pears |
----------------------------------------
Something like the one above.
Why not just produce an HTML table if you wanna enable copy and paste into excel table cells? Last I checked that worked.
Edit:
With this in a browser (page displayed as HTML of course), copy+paste of the text should produce your text in columns like you want.