This is documentation for Mathematica 6, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.2)

CellPrint

Updated In 6 Graphic
CellPrint[expr]
inserts expr as a complete cell in the current notebook just below the cell being evaluated.
CellPrint[{expr1, expr2, ...}]
inserts a sequence of cells.
  • If expr is a string or Text object, a text cell is created to contain it.  »
  • If expr is any other type of expression, an expression cell is created to contain it.  »
  • With a text-based front end, CellPrint[cell] does the same as applying Print to the contents of cell.
Create a text cell from a TextCell object:
In[1]:=
Click for copyable input
 
Create a sequence of text cells:
In[1]:=
Click for copyable input
Out[1]=
In[2]:=
Click for copyable input
 
Create a text cell from a string:
In[1]:=
Click for copyable input
a
New in 3 | Last modified in 6