title: How do I find currently loaded mode (syntax) in Ace Editor?
body: <p>Well as the title says - how do I find out what the currently loaded mode is in Ace Editor?</p>
  
  <p>editor.getSession().getMode() does not really return anything I can use - have looked through the objects returned somewhat - but could not find anything.</p>
  
  <p>editor.getTheme() returns a string to me that I can use however - just seems funny if they did not do somewhat the same for mode</p>