Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>By default, when you visit a <code>.html</code> file in Emacs (22 or 23), it will put you in <code>html-mode</code>. That is probably not what you want. You probably want <code>nxml-mode</code>, which is seriously fancy. <code>nxml-mode</code> seems to only come with Emacs 23, although you can download it for earlier versions of emacs from the <a href="http://www.thaiopensource.com/nxml-mode/" rel="nofollow noreferrer">nXML web site</a>. There is also a Debian and Ubuntu package named <code>nxml-mode</code>. You can enter <code>nxml-mode</code> with:</p> <pre><code>M-x nxml-mode </code></pre> <p>You can view nxml mode documentation with:</p> <pre><code>C-h i g (nxml-mode) RET </code></pre> <p>All that being said, you will probably have to use something like <a href="http://tidy.sourceforge.net/" rel="nofollow noreferrer">Tidy</a> to re-format your xhtml example. <code>nxml-mode</code> will get you from</p> <pre class="lang-html prettyprint-override"><code>&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt; &lt;html xmlns="http://www.w3.org/1999/xhtml"&gt; &lt;head&gt;&lt;/head&gt; &lt;body&gt; &lt;table&gt; &lt;tr&gt; &lt;td&gt;blah&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt; &lt;/body&gt; </code></pre> <p>to</p> <pre class="lang-html prettyprint-override"><code>&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt; &lt;html xmlns="http://www.w3.org/1999/xhtml"&gt; &lt;head&gt;&lt;/head&gt; &lt;body&gt; &lt;table&gt; &lt;tr&gt; &lt;td&gt;blah&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt; &lt;/body&gt; &lt;/html&gt; </code></pre> <p>but I don't see a more general facility to do line breaks on certain xml tags as you want. Note that <code>C-j</code> will insert a new line with proper indentation, so you may be able to do a quick macro or hack up a <code>defun</code> that will do your tables.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload