If you are using RAMP-TS, the RAMP script editor now allows you to optionally use the ACE script editor - {+}https://ace.c9.io/+.
Use this dropdown to change from basic memo style editing to the ACE editor:

 
When the ACE editor is in use, you can switch on its syntax helper to dynamically see warnings about your scripting: