<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>
EtText: Documentation: Lists
</title>
<meta name="generator" content="WebMake/2.2" />
<style>
body {
background-color: #ffffff;
color: #000000;
font-size: medium;
font-family: verdana,lucida,helvetica,sans-serif;
}
// OL,UL,P,BODY,TD,TR,TH,FORM {
// font-family: verdana,lucida,helvetica,sans-serif;
// font-size: medium;
// color: #000000;
}
code, samp, pre
{
font-family: monospace;
}
H1 { font-size: large; font-family: Garamond,Book Antiqua,Times,serif; }
H2 { font-size: large; font-family: Garamond,Book Antiqua,Times,serif; }
H3 { font-size: medium; font-family: Garamond,Book Antiqua,Times,serif; }
H4 { font-size: small; font-family: Garamond,Book Antiqua,Times,serif; }
H5 { font-size: x-small; font-family: Garamond,Book Antiqua,Times,serif; }
H6 { font-size: xx-small; font-family: Garamond,Book Antiqua,Times,serif; }
A:link {
font-weight: bold;
color: #004000;
text-decoration: underline;
}
A:visited {
font-weight: normal;
color: #008000;
text-decoration: underline;
}
A:active {
font-weight: bold;
color: #800000;
text-decoration: underline;
}
</style>
</head>
<body bgcolor="#ffffff" text="#000000" link="#3300cc" vlink="#660066">
<font face="lucida,verdana,sans-serif">
<div align="center">
<img src="images/EtTextTitle.png" width="489" height="113" />
</div>
<table width="100%">
<tr>
<td valign="top">
<strong><a href="http://ettext.taint.org/">EtText</a>
Documentation</strong> (version 2.2)
</td>
<td valign="top">
<div align="right">
[ <a href="ettext.html">Back</a> | <a href="sidebars.html">Forward</a> | <a href="index.html">Index</a>
| <a href="allinone.html">All In One</a> ]
</div>
</td>
</tr>
</table>
<!-- yes, it's that Mozilla black-border code again ;) -->
<!-- stolen from www.mozilla.org via rc3.org -->
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td bgcolor="#aaaaaa">
<table border="0" cellspacing="4" cellpadding="4" width="100%">
<tr>
<td bgcolor="#ffffff">
<table border="0" cellspacing="4" cellpadding="4" width="100%">
<tr>
<td>
<h2>Lists</h2><p>
A paragraph indented from the left margin (by either spaces or tabs, or both),
and starting with a <code>*</code>, <code>-</code>, <code>+</code> or
<code>o</code> character followed by whitespace, will be converted into a list
item (<strong><li></strong> tag).
</p>
<p>
The same goes for indented paragraphs that start with the string
<code>1.</code>, <code>a.</code>, <code>A.</code>, <code>1)</code>, <code>A)</code>, or <code>a)</code>, followed by
whitespace. However the default list tag in this case will be an
<strong><ol></strong>...<strong></ol></strong> list. Any positive integer followed
immediately by a full stop and a space will do the trick. The <strong><ol></strong>
tag will use the correct <strong>type</strong> attribute to match the indexing you're using.
</p>
<blockquote>
<p>
<em>(Compatibility note: previous versions of EtText required that the
<strong><ul></strong> or <strong><ol></strong> tags be written manually. This is no
longer the case, they will be added automatically.)</em>
</p>
</blockquote>
<p>
When you're writing <strong><ul></strong> lists, note that some text editors (such as
<em>vim</em>) will reformat list items automatically, assuming that you want the
text to line up with the start of the text, instead of the bullet-point
character, on the previous line, like so:
</p>
<p>
<pre>
- this is a list item. We should make sure that
blah blah etc. etc.
</pre>
</p>
<p>
This is pretty handy, so using a <code>-</code> as the list bullet point character is
recommended.
</p>
<p>
Indented paragraphs that start with <code><strong>term</strong>:</code><em>tab</em><code><strong>rest
of paragraph</strong></code> will be converted into definition lists (this is another
<a href="http://c2.com/cgi/wiki?WikiWikiWeb">StolenFromWikiIdea</a>). As a result, this:
</p>
<p>
<!--etsafe-->
<pre>
Foo: Blah blah blah etc.
</pre>
<!--/etsafe-->
</p>
<p>
Will look like this:
</p>
<dl>
<dt>
Foo
</dt>
<dd>
<p>
Blah blah blah etc.
</p>
</dd>
</dl>
<p>
</p>
</p>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
<table width="100%">
<tr>
<td valign="top">
<strong><a href="http://ettext.taint.org/">EtText</a>
Documentation</strong> (version 2.2)
</td>
<td valign="top">
<div align="right">
[ <a href="ettext.html">Back</a> | <a href="sidebars.html">Forward</a> | <a href="index.html">Index</a>
| <a href="allinone.html">All In One</a> ]
</div>
</td>
</tr>
</table>
<div align="right">
<a href="http://webmake.taint.org/"><img src="images/BuiltWithWebMake.png" border="0" width="88" height="31" /></a>
</div>
</font>
</body>
</html>