Ace Editor has Live Syntax Checking, which can check code as it's being typed for syntax errors.
I have a Rails 3.2 site with the Ace file included on each coding page. I added a require statement to the javascript to tell Ace where the worker file is, but it's still not working. How do I get Live Syntax checking to work?
Each coding page includes:
<%= javascript_include_tag "ace-src/ace.js" %>
<%= javascript_include_tag "ace-editor" %>
The Ace files are located in the ace-src folder. I aded this code to ace-editor.js:
require("ace/config").set("workerPath", "/assets/ace-src");