WLXForm
A standard form used for representing Wolfram expressions on slides, WLX and markdown cells.
The final result must be conveted using
MakeBoxes if it is not a stringExample
Depending on where an expression is displayed, one can change its visual representation using MakeBoxes tagset, i.e.
SpecialOne /: MakeBoxes[SpecialOne, StandardForm] := With[{
o = Graphics[{Red, Disk[]}]
},
MakeBoxes[o, StandardForm]
]
SpecialOne /: MakeBoxes[SpecialOne, WLXForm] := With[{
o = Graphics[{Blue, Disk[]}]
},
MakeBoxes[o, WLXForm]
]