Visual editor for inputting mathematical notation