1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125
|
# $Id$
#
# >>Copyright::
# Copyright (c) 1992-1996, Ian Clatworthy (ianc@mincom.com).
# You may distribute under the terms specified in the LICENSE file.
#
# >>History::
# -----------------------------------------------------------------------
# Date Who Change
# 29-Feb-96 ianc SDF 2.000
# -----------------------------------------------------------------------
#
H1: Lists
H2: Overview
[[SDF]] supports 3 types of lists:
* {{unordered}} - items are bulleted
* {{plain}} - items are not bulleted
* {{ordered}} - items are labelled with numbers or letters.
As lists are so common, they are supported by a special syntax:
E: special_tag text
where {{special_tag}} is a sequence of 1 to 6 special characters.
Spaces or tabs between the tag and text are ignored.
H2: Unordered Lists
To define an unordered list, use the '*' character. For example:
E:* peach
E:* banana
E:* mango.
The result is:
* peach
* banana
* mango.
H2: Plain Lists
To define a plain list, use the '.' character. For example:
E:. peach
E:. banana
E:. mango.
The result is:
. peach
. banana
. mango.
H2: Ordered Lists
To define an ordered list, use the '^' character for the first
item and the '+' character for remaining items. For example:
E:^ peach
E:+ banana
E:+ mango.
The result is:
^ peach
+ banana
+ mango.
H2: List Paragraphs
To nest a normal paragraph inside a list, use the '.' tag.
For example:
E:* peach
E:. This is one of my favorites.
The result is:
* peach
. This is one of my favorites.
H2: Nested Lists
Lists can be nested up to 6 levels. The nesting level is taken
from the number of special characters in the tag. For example:
E:** a bulleted list at level 2
E:^^^ an ordered list at level 3
To nest normal paragraphs inside these lists, use plain list items.
For example:
E:** a bulleted list at level 2
E:.. A normal paragraph at level 2.
H2: The '-' Special Tag
As a convenience, the '-' character can be used to specify
a bulleted list at level 2. For example:
E:* inputs:
E: - programmers
E: - pizza
E:* outputs:
E: - software
E: - empty pizza boxes.
The result is:
* inputs:
- programmers
- pizza
* outputs:
- software
- empty pizza boxes.
Likewise, the tags '--' to '-----' are equivalent to the tags
'***' to '******'.
!end_topic
|