Hi,<p>I am creating a Flash replacement - a web based animation editor. https://its-near.me/flash2/editor<p>The animation will be controlled by simple text like:<p>At time 0 cowboy walks to point A.<p>Then cowboy jumps.<p>Then cowboy walks to point C.<p>The grammar is predefined: [time] [object] [verb] [?subject]<p>Where time can be "At time XX" or "Then"<p>object can be any of the images in the animation<p>verb can be any of the movements that the image sprite supports eg: "walk", "run", "slide", "die"<p>and so on.<p>The editor should prompt the possible values that the user can enter. eg: in the beginning, the choices would be "At time" and "Then"<p>I have searched online and in particular github with no luck. Anyone here know of any?<p>Hopefully, I have explained clearly. If not, please ask for clarification.<p>Thanks.
Take a look at Codemirror (<a href="https://codemirror.net/" rel="nofollow">https://codemirror.net/</a>). It has support for autocompletion, although I haven't tested this myself.<p>You can also define syntax highlighting for your grammar.