title: How to apply auto indentation for CodeMirror editor?
body: <p>I am using a common Codemirror editor for several languages (Groovy, Python, Beanshell, XSLT). Depending on the language selected in a drop down, I set the respective mode for the editor.</p>
  
  <p>How do I apply auto-indentation for the languages above?</p>