title: How to get syntax error on Ace editor and alert it
body: <p>I have been trying to customise syntax error on Ace editor. I disabled live syntax checker using this code below</p>
  
  <pre><code> editor.getSession().setUseWorker(false);
  </code></pre>
  
  <p>I have googled and try several answers on stackoverflow, no one of these work. </p>
  
  <p>I want to get syntax error like</p>
  
  <p>if there is error or warning</p>
  
  <ol>
  <li>On click run button </li>
  <li>Get editor error or warning</li>
  <li>Append it in a bootstrap alert div </li>
  <li>Return false (do not run the code).</li>
  </ol>
  
  <p>Please i need help. I am ready to learn it step by step.</p>