An editor for chemical formulas