This is the first step towards building a GMAT debugging environment (GMT-6292). Let's break it into the following steps:
Learn how the wxWidgets (Scintilla based) editor works
Retrieve information from the Interpreter about the script line(s) that did not parse correctly
Provide highlighting (change background color?) for the problem script line(s).