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 (4) 

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 (1) 

Recover an intermediate result:

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

Possible Issues (1) 

Some expressions give Null:

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

Requirements

Wolfram Language 11.3 (March 2018) or above

Version History

  • 1.0.0 – 14 January 2019

License Information