BUILT-IN WOLFRAM LANGUAGE SYMBOL

TextClipboardType

TextClipboardType
is an option for cells that specifies how Edit Copy treats a cell when converting it for the system's textual clipboard.

DetailsDetails

  • TextClipboardType is typically used in stylesheets to customize the default clipboard behavior for different cell styles.
  • Choose Edit Copy As instead of TextClipboardType to change the clipboard type for a single copy operation.
  • The following settings can be used:
  • "PlainText"preserve the cell as plain text; equivalent to Edit Copy As Plain Text
    "InputText"preserve the Wolfram System's ability to reevaluate the cell; equivalent to Edit Copy As Input Text
    "Package"return exactly what you would get if you saved the cell as a package
  • By default, the value of TextClipboardType is for input and output cells, for textual, print, and message cells, and "Package" for code cells.
  • Both and "Package" preserve evaluation semantics. will adjust white space and line breaks to make the result more readable, while "Package" preserves the whitespace exactly as it was typed into the cell.
  • creates a textual form that closely resembles the visual appearance, even if that appearance would not evaluate in Mathematica.

ExamplesExamplesopen allclose all

Basic Examples  (3)Basic Examples  (3)

Select the printed input cell below, choose Edit Copy, and paste into a text editor:

In[1]:=
Click for copyable input
Out[1]=

Here is the pasted form:

2+2     a
b c

Select the printed input cell below, choose Edit Copy, and paste into a text editor:

In[1]:=
Click for copyable input
Out[1]=

Here is the pasted form:

{
{2 + 2, a},
{b, c}
}

Select the printed input cell below, choose Edit Copy, and paste into a text editor:

In[1]:=
Click for copyable input
Out[1]=

Here is the pasted form:

{
{2+2, a},
{b, c}
}
Introduced in 2008
(7.0)