({{, (RefLink[SyntaxForm, paclet:ref/SyntaxForm]) 
is an option for (RefLink[InterpretationBox, paclet:ref/InterpretationBox]) and (RefLink[TagBox, paclet:ref/TagBox]) objects that specifies the precedence level to use when the (RefLink[InterpretationBox, paclet:ref/InterpretationBox]) or (RefLink[TagBox, paclet:ref/TagBox]) is considered as an operator.}})

OpenersNotesSection(Spacer1)Details

(RefLink[InterpretationBox, paclet:ref/InterpretationBox]) and (RefLink[TagBox, paclet:ref/TagBox]) objects provide a way to store hidden information in Wolfram Language output. They are used for expressions that are to be displayed and interpreted in different forms. (RefLink[InterpretationBox, paclet:ref/InterpretationBox])[boxes,interpretation] displays as boxes but is interpreted on input as interpretation. (RefLink[TagBox, paclet:ref/TagBox])[boxes,tag] displays as boxes but maintains tag to guide the interpretation of boxes on input.

(RefLink[SyntaxForm, paclet:ref/SyntaxForm]) is specified as a string containing an operator whose precedence level is the same as that of the contents of the (RefLink[InterpretationBox, paclet:ref/InterpretationBox]) and (RefLink[TagBox, paclet:ref/TagBox]). For example, (RefLink[SyntaxForm, paclet:ref/SyntaxForm])->"*". You can also distinguish the infix and prefix form of an operator, for example, by setting (RefLink[SyntaxForm, paclet:ref/SyntaxForm]) to "a+b" and "+a", respectively.

With the default setting (RefLink[SyntaxForm, paclet:ref/SyntaxForm])->(RefLink[Automatic, paclet:ref/Automatic]), the Wolfram Language automatically assigns a precedence determined by the contents of the (RefLink[InterpretationBox, paclet:ref/InterpretationBox]) or (RefLink[TagBox, paclet:ref/TagBox]).

For a selected (RefLink[InterpretationBox, paclet:ref/InterpretationBox]) or (RefLink[TagBox, paclet:ref/TagBox]) object, (RefLink[SyntaxForm, paclet:ref/SyntaxForm]) is set as an option for (RefLink[InterpretationBox, paclet:ref/InterpretationBox]) or (RefLink[TagBox, paclet:ref/TagBox]), and applies only to the selection.

At the cell level, (RefLink[SyntaxForm, paclet:ref/SyntaxForm]) is set as a suboption of the (RefLink[InterpretationBoxOptions, paclet:ref/InterpretationBoxOptions]) or (RefLink[TagBoxOptions, paclet:ref/TagBoxOptions]) option for cells. It specifies the default setting of (RefLink[SyntaxForm, paclet:ref/SyntaxForm]) for any (RefLink[InterpretationBox, paclet:ref/InterpretationBox]) or (RefLink[TagBox, paclet:ref/TagBox]) object in the cell.

({{DocumentationFooterIconsRelatedFunction.png, ({{See Also}, {(RefLink[InterpretationBox, paclet:ref/InterpretationBox])  ▪  (RefLink[TagBox, paclet:ref/TagBox])  ▪  (RefLink[FormBox, paclet:ref/FormBox])  ▪  (RefLink[ToExpression, paclet:ref/ToExpression])  ▪  (RefLink[ButtonBox, paclet:ref/ButtonBox])}})}})

({{DocumentationFooterIconsRelatedTutorial.png, ({{Tutorials}, {▪(RefLinkPlain[Representing Textual Forms by Boxes, paclet:tutorial/RepresentingTextualFormsByBoxes])}})}})