Wolfram Research

Function Repository Resource:

EchoNormal

Source Notebook

Print the code in InputForm unformatted

Contributed by: Taliesin Beynon

ResourceFunction["EchoNormal"][expr]

prints the undecorated InputForm of expr and returns it unformatted.

Examples

Basic Examples

EchoNormal evaluates the expression and prints in raw InputForm:

In[1]:=
ResourceFunction["EchoNormal"][Integrate[x^3, x]]
Out[1]=

A styled expression:

In[2]:=
ResourceFunction["EchoNormal"][Style["Text", 20, Blue]]
Out[2]=

An expression in TraditionalForm:

In[3]:=
ResourceFunction["EchoNormal"][TraditionalForm[Binomial[m, n]]]
Out[3]=

Graphics primitives:

In[4]:=
ResourceFunction["EchoNormal"][Graphics[{Orange, Circle[]}]]
Out[4]=

Scope

Recover an intermediate result:

In[5]:=
date = ResourceFunction["EchoNormal"][
  DateObject[]]; CalendarConvert[date, "Jewish"]
Out[5]=

Possible Issues

Some expressions give Null:

In[6]:=
ResourceFunction["EchoNormal"][Print["hello!"]]

Requirements

Wolfram Language 11.3 (March 2018) or above

Resource History

License Information