title: Emacs indentation for html (web-mode) doesn't work properly
body: <p>I'm using <a href="http://web-mode.org/" rel="nofollow noreferrer" title="web-mode">web-mode</a> in Emacs to get syntax highlighting and indentation for PHP and HTML.</p>
  
  <p>If I have this code in a .php file</p>
  
  <pre><code>&lt;p&gt;
  Lorem ipsum dolor sit amet, consectetur adipiscing elit.
  &lt;/p&gt;
  </code></pre>
  
  <p>And then put the cursor on the middle line and press tab then nothing happens.</p>
  
  <p>I want it to look like this:</p>
  
  <pre><code>&lt;p&gt;
       Lorem ipsum dolor sit amet, consectetur adipiscing elit.
  &lt;/p&gt;
  </code></pre>
  
  <p>If I put the text in a tag on a single line and try to indent, it works.</p>
  
  <p>This:</p>
  
  <pre><code>&lt;p&gt;
  &lt;a&gt;Lorem ipsum dolor sit amet, consectetur adipiscing elit.&lt;/a&gt;
  &lt;/p&gt;
  </code></pre>
  
  <p>turns into this, which it should</p>
  
  <pre><code>&lt;p&gt;
      &lt;a&gt;Lorem ipsum dolor sit amet, consectetur adipiscing elit.&lt;/a&gt;
  &lt;/p&gt;
  </code></pre>
  
  <hr>
  
  <p>My .emacs file</p>
  
  <pre><code>(require 'web-mode)
  (add-to-list 'auto-mode-alist '("\\.phtml\\'" . web-mode))
  (add-to-list 'auto-mode-alist '("\\.tpl\\.php\\'" . web-mode))
  (add-to-list 'auto-mode-alist '("\\.jsp\\'" . web-mode))
  (add-to-list 'auto-mode-alist '("\\.as[cp]x\\'" . web-mode))
  (add-to-list 'auto-mode-alist '("\\.erb\\'" . web-mode))
  (add-to-list 'auto-mode-alist '("\\.mustache\\'" . web-mode))
  (add-to-list 'auto-mode-alist '("\\.djhtml\\'" . web-mode))
  
  (setq web-mode-markup-indent-offset 4)
  (setq web-mode-css-indent-offset 4)
  (setq web-mode-code-indent-offset 4)
  (setq web-mode-indent-style 4)
  </code></pre>
  
  <p><img src="https://i.stack.imgur.com/r7DCA.gif" alt="enter image description here"></p>