Source editing
The editor interface includes two input/display modes: Design view and Source view. Design view is the standard mode for creating and editing your equations discussed in other sections of this documentation. In this view the input is displayed as it will be seen in your document. Source view is an alternate mode which displays the exact MathML syntax and structure, and operates just like a text editor, allowing you to directly edit equation content within the MathML source itself. Source view also includes commands for checking the syntax of the MathML and formatting the text itself. The Editor will always open into the view used in the last editing session.
Click on the 'Source view' tab just below the editor window to edit the MathML source. Changes made to equation content in Source view are immediately reflected in Design view.
Editing the MathML in Source view is just like working in any text editor. All standard text, space, and line break characters are recognized. In addition, pressing Shift+Tab will tab blocks of text. This can be useful for isolating or formatting sections of the MathML to aid with editing.
The Source view toolbar is fixed (non-configurable) and includes commands for Cut, Copy, Paste, Undo, Redo, Format Source, Validate, and Help.
Context highlighting
Source view is designed with some clear visual cues to assist in viewing and editing the structure. To this end, the Editor uses four colors to differentiate the major components:
MathML data and regular text is displayed black, such as the number 355, the entity β or the function sin.
MathML tags and edited data before re-formatting are displayed blue, such as
<span><tt></mo></tt></span>or
<span><tt><mfrac></tt></span>.
MathML attribute values display in purple, such as the 2 mathcolor and linebreak attribute values
<span><tt>red</tt></span>,
<span><tt>yellow</tt></span>, and
<span><tt>badbreak</tt></span>, respectively.
MathML syntax errors reported after running the Validate command display in red, such as
<span><tt></row></tt></span>when
<span><tt></mrow></tt></span>is expected