BUG 10870: A better trigger editor is needed

Adding CodeMirror code to coloring and check php syntaxis on Trigger Editor.