title: CodeMirror: XML code not being indented
body: <p>I am using CodeMirror to display XML in XML mode, but the code is not being automatically indented. </p>
  
  <p>I checked and the XML mode does implement <code>indent(state, textAfter, fullLine)</code>, which handles the indenting, so it should be working.</p>
  
  <p>This is how I am initializing CodeMirror:</p>
  
  <pre><code>CodeMirror.fromTextArea(document.getElementById("test"), {
      mode: 'application/xml',
      theme: 'eclipse',
      lineNumbers: true,
      lineWrapping: true,
      readOnly: true,
      cursorBlinkRate: -1
  });
  </code></pre>
  
  <p>Check this jsFiddle link for a live version: <a href="https://jsfiddle.net/zrosfz7x" rel="nofollow">https://jsfiddle.net/zrosfz7x</a>.</p>
  
  <p>Any ideas?</p>