forresto / turtle-svg

JavaScript turtle graphics to SVG for laser cutting = LASER TURTLES!!!
http://forresto.github.com/turtle-svg/
26 stars 8 forks source link

Dynamic syntax validation #1

Closed craftoid closed 11 years ago

craftoid commented 11 years ago

ACE's dynamic syntax validation feature didn't work. The editor tries to use the javascript worker from the cloud which results in same-origin policy problems. Using a local javascript worker fixed it.

forresto commented 11 years ago

Cool. I hadn't fully explored Ace, and just started from the example. With this maybe I can check the syntax before sending it off to the SVG worker.

craftoid commented 11 years ago

Yes, the syntax checker is really very helpful.

As long as this project resides on GitHub, you could also get rid of the same-origin problems by linking this version of ace: https://github.com/ajaxorg/ace-builds/blob/master/src-min-noconflict/ace.js

But then again, this wouldn't work for my local clone of the repo ...