annotate public/help/wiki_syntax_detailed.html @ 36:de76cd3e8c8e cc-branches

* Probably abortive experiments in extracting the branch from Hg
author Chris Cannam <chris.cannam@soundsoftware.ac.uk>
date Wed, 20 Oct 2010 10:07:29 +0100
parents 513646585e45
children 94944d00e43c
rev   line source
Chris@0 1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
Chris@0 2 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
Chris@0 3 <head>
Chris@0 4 <title>RedmineWikiFormatting</title>
Chris@0 5 <meta http-equiv="content-type" content="text/html; charset=utf-8" />
Chris@0 6 <style type="text/css">
Chris@0 7 body { font:80% Verdana,Tahoma,Arial,sans-serif; }
Chris@0 8 h1, h2, h3, h4 { font-family: Trebuchet MS,Georgia,"Times New Roman",serif; }
Chris@0 9 pre, code { font-size:120%; }
Chris@0 10 pre code { font-size:100%; }
Chris@0 11 pre {
Chris@0 12 margin: 1em 1em 1em 1.6em;
Chris@0 13 padding: 2px;
Chris@0 14 background-color: #fafafa;
Chris@0 15 border: 1px solid #dadada;
Chris@0 16 width:95%;
Chris@0 17 overflow-x: auto;
Chris@0 18 }
Chris@0 19 a.new { color: #b73535; }
Chris@0 20
Chris@0 21 .CodeRay .c { color:#666; }
Chris@0 22
Chris@0 23 .CodeRay .cl { color:#B06; font-weight:bold }
Chris@0 24 .CodeRay .dl { color:black }
Chris@0 25 .CodeRay .fu { color:#06B; font-weight:bold }
Chris@0 26
Chris@0 27 .CodeRay .il { background: #eee }
Chris@0 28 .CodeRay .il .idl { font-weight: bold; color: #888 }
Chris@0 29
Chris@0 30 .CodeRay .iv { color:#33B }
Chris@0 31 .CodeRay .r { color:#080; font-weight:bold }
Chris@0 32
Chris@0 33 .CodeRay .s { background-color:#fff0f0 }
Chris@0 34 .CodeRay .s .dl { color:#710 }
Chris@0 35 </style>
Chris@0 36 </head>
Chris@0 37
Chris@0 38 <body>
Chris@0 39 <h1><a name="1" class="wiki-page"></a>Wiki formatting</h1>
Chris@0 40
Chris@0 41 <h2><a name="2" class="wiki-page"></a>Links</h2>
Chris@0 42
Chris@0 43 <h3><a name="3" class="wiki-page"></a>Redmine links</h3>
Chris@0 44
Chris@0 45 <p>Redmine allows hyperlinking between issues, changesets and wiki pages from anywhere wiki formatting is used.</p>
Chris@0 46 <ul>
Chris@0 47 <li>Link to an issue: <strong>#124</strong> (displays <del><a href="#" class="issue" title="bulk edit doesn't change the category or fixed version properties (Closed)">#124</a></del>, link is striked-through if the issue is closed)</li>
Chris@0 48 <li>Link to a changeset: <strong>r758</strong> (displays <a href="#" class="changeset" title="Search engine now only searches objects the user is allowed to view.">r758</a>)</li>
Chris@0 49 <li>Link to a changeset with a non-numeric hash: <strong>commit:c6f4d0fd</strong> (displays c6f4d0fd). Added in <a href="#" class="changeset" title="Merged Git support branch (r1200 to r1226).">r1236</a>.</li>
Chris@0 50 </ul>
Chris@0 51
Chris@0 52 <p>Wiki links:</p>
Chris@0 53
Chris@0 54 <ul>
Chris@0 55 <li><strong>[[Guide]]</strong> displays a link to the page named 'Guide': <a href="#" class="wiki-page">Guide</a></li>
Chris@0 56 <li><strong>[[Guide#further-reading]]</strong> takes you to the anchor "further-reading". Headings get automatically assigned anchors so that you can refer to them: <a href="#" class="wiki-page">Guide</a></li>
Chris@0 57 <li><strong>[[Guide|User manual]]</strong> displays a link to the same page but with a different text: <a href="#" class="wiki-page">User manual</a></li>
Chris@0 58 </ul>
Chris@0 59
Chris@0 60 <p>You can also link to pages of an other project wiki:</p>
Chris@0 61
Chris@0 62 <ul>
Chris@0 63 <li><strong>[[sandbox:some page]]</strong> displays a link to the page named 'Some page' of the Sandbox wiki</li>
Chris@0 64 <li><strong>[[sandbox:]]</strong> displays a link to the Sandbox wiki main page</li>
Chris@0 65 </ul>
Chris@0 66
Chris@0 67 <p>Wiki links are displayed in red if the page doesn't exist yet, eg: <a href="#" class="wiki-page new">Nonexistent page</a>.</p>
Chris@0 68
Chris@0 69 <p>Links to others resources (0.7):</p>
Chris@0 70
Chris@0 71 <ul>
Chris@0 72 <li>Documents:
Chris@0 73 <ul>
Chris@0 74 <li><strong>document#17</strong> (link to document with id 17)</li>
Chris@0 75 <li><strong>document:Greetings</strong> (link to the document with title "Greetings")</li>
Chris@0 76 <li><strong>document:"Some document"</strong> (double quotes can be used when document title contains spaces)</li>
Chris@0 77 </ul></li>
Chris@0 78 </ul>
Chris@0 79
Chris@0 80 <ul>
Chris@0 81 <li>Versions:
Chris@0 82 <ul>
Chris@0 83 <li><strong>version#3</strong> (link to version with id 3)</li>
Chris@0 84 <li><strong>version:1.0.0</strong> (link to version named "1.0.0")</li>
Chris@0 85 <li><strong>version:"1.0 beta 2"</strong></li>
Chris@0 86 </ul></li>
Chris@0 87 </ul>
Chris@0 88
Chris@0 89 <ul>
Chris@0 90 <li>Attachments:
Chris@0 91 <ul>
Chris@0 92 <li><strong>attachment:file.zip</strong> (link to the attachment of the current object named file.zip)</li>
Chris@0 93 <li>For now, attachments of the current object can be referenced only (if you're on an issue, it's possible to reference attachments of this issue only)</li>
Chris@0 94 </ul></li>
Chris@0 95 </ul>
Chris@0 96
Chris@0 97 <ul>
Chris@0 98 <li>Repository files
Chris@0 99 <ul>
Chris@0 100 <li><strong>source:some/file</strong> -- Link to the file located at /some/file in the project's repository</li>
Chris@0 101 <li><strong>source:some/file@52</strong> -- Link to the file's revision 52</li>
Chris@0 102 <li><strong>source:some/file#L120</strong> -- Link to line 120 of the file</li>
Chris@0 103 <li><strong>source:some/file@52#L120</strong> -- Link to line 120 of the file's revision 52</li>
Chris@0 104 <li><strong>export:some/file</strong> -- Force the download of the file</li>
Chris@0 105 </ul></li>
Chris@0 106 </ul>
Chris@0 107
Chris@0 108 <p>Escaping (0.7):</p>
Chris@0 109
Chris@0 110 <ul>
Chris@0 111 <li>You can prevent Redmine links from being parsed by preceding them with an exclamation mark: !</li>
Chris@0 112 </ul>
Chris@0 113
Chris@0 114
Chris@0 115 <h3><a name="4" class="wiki-page"></a>External links</h3>
Chris@0 116
Chris@0 117 <p>HTTP URLs and email addresses are automatically turned into clickable links:</p>
Chris@0 118
Chris@0 119 <pre>
Chris@0 120 http://www.redmine.org, someone@foo.bar
Chris@0 121 </pre>
Chris@0 122
Chris@0 123 <p>displays: <a class="external" href="http://www.redmine.org">http://www.redmine.org</a>, <a href="mailto:someone@foo.bar" class="email">someone@foo.bar</a></p>
Chris@0 124
Chris@0 125 <p>If you want to display a specific text instead of the URL, you can use the standard textile syntax:</p>
Chris@0 126
Chris@0 127 <pre>
Chris@0 128 "Redmine web site":http://www.redmine.org
Chris@0 129 </pre>
Chris@0 130
Chris@0 131 <p>displays: <a href="http://www.redmine.org" class="external">Redmine web site</a></p>
Chris@0 132
Chris@0 133
Chris@0 134 <h2><a name="5" class="wiki-page"></a>Text formatting</h2>
Chris@0 135
Chris@0 136
Chris@0 137 <p>For things such as headlines, bold, tables, lists, Redmine supports Textile syntax. See <a class="external" href="http://www.textism.com/tools/textile/">http://www.textism.com/tools/textile/</a> for information on using any of these features. A few samples are included below, but the engine is capable of much more of that.</p>
Chris@0 138
Chris@0 139 <h3><a name="6" class="wiki-page"></a>Font style</h3>
Chris@0 140
Chris@0 141 <pre>
Chris@0 142 * *bold*
Chris@0 143 * _italic_
Chris@0 144 * _*bold italic*_
Chris@0 145 * +underline+
Chris@0 146 * -strike-through-
Chris@0 147 </pre>
Chris@0 148
Chris@0 149 <p>Display:</p>
Chris@0 150
Chris@0 151 <ul>
Chris@0 152 <li><strong>bold</strong></li>
Chris@0 153 <li><em>italic</em></li>
Chris@0 154 <li><em>*bold italic*</em></li>
Chris@0 155 <li><ins>underline</ins></li>
Chris@0 156 <li><del>strike-through</del></li>
Chris@0 157 </ul>
Chris@0 158
Chris@0 159 <h3><a name="7" class="wiki-page"></a>Inline images</h3>
Chris@0 160
Chris@0 161 <ul>
Chris@0 162 <li><strong>!image_url!</strong> displays an image located at image_url (textile syntax)</li>
Chris@0 163 <li><strong>!>image_url!</strong> right floating image</li>
Chris@0 164 <li>If you have an image attached to your wiki page, it can be displayed inline using its filename: <strong>!attached_image.png!</strong></li>
Chris@0 165 </ul>
Chris@0 166
Chris@0 167 <h3><a name="8" class="wiki-page"></a>Headings</h3>
Chris@0 168
Chris@0 169 <pre>
Chris@0 170 h1. Heading
Chris@0 171 h2. Subheading
Chris@0 172 h3. Subsubheading
Chris@0 173 </pre>
Chris@0 174
Chris@0 175 <p>Redmine assigns an anchor to each of those headings thus you can link to them with "#Heading", "#Subheading" and so forth.</p>
Chris@0 176
Chris@0 177
Chris@0 178 <h3><a name="9" class="wiki-page"></a>Paragraphs</h3>
Chris@0 179
Chris@0 180 <pre>
Chris@0 181 p>. right aligned
Chris@0 182 p=. centered
Chris@0 183 </pre>
Chris@0 184
Chris@0 185 <p style="text-align:center;">This is centered paragraph.</p>
Chris@0 186
Chris@0 187
Chris@0 188 <h3><a name="10" class="wiki-page"></a>Blockquotes</h3>
Chris@0 189
Chris@0 190 <p>Start the paragraph with <strong>bq.</strong></p>
Chris@0 191
Chris@0 192 <pre>
Chris@0 193 bq. Rails is a full-stack framework for developing database-backed web applications according to the Model-View-Control pattern.
Chris@0 194 To go live, all you need to add is a database and a web server.
Chris@0 195 </pre>
Chris@0 196
Chris@0 197 <p>Display:</p>
Chris@0 198
Chris@0 199 <blockquote>
Chris@0 200 <p>Rails is a full-stack framework for developing database-backed web applications according to the Model-View-Control pattern.<br />To go live, all you need to add is a database and a web server.</p>
Chris@0 201 </blockquote>
Chris@0 202
Chris@0 203
Chris@0 204 <h3><a name="11" class="wiki-page"></a>Table of content</h3>
Chris@0 205
Chris@0 206 <pre>
Chris@0 207 {{toc}} => left aligned toc
Chris@0 208 {{>toc}} => right aligned toc
Chris@0 209 </pre>
Chris@0 210
Chris@0 211 <h2><a name="12" class="wiki-page"></a>Macros</h2>
Chris@0 212
Chris@0 213 <p>Redmine has the following builtin macros:</p>
Chris@0 214
Chris@0 215 <p><dl><dt><code>hello_world</code></dt><dd><p>Sample macro.</p></dd><dt><code>include</code></dt><dd><p>Include a wiki page. Example:</p>
Chris@0 216
Chris@0 217 <pre><code>{{include(Foo)}}</code></pre></dd><dt><code>macro_list</code></dt><dd><p>Displays a list of all available macros, including description if available.</p></dd></dl></p>
Chris@0 218
Chris@0 219
Chris@0 220 <h2><a name="13" class="wiki-page"></a>Code highlighting</h2>
Chris@0 221
Chris@0 222 <p>Code highlightment relies on <a href="http://coderay.rubychan.de/" class="external">CodeRay</a>, a fast syntax highlighting library written completely in Ruby. It currently supports c, html, javascript, rhtml, ruby, scheme, xml languages.</p>
Chris@0 223
Chris@0 224 <p>You can highlight code in your wiki page using this syntax:</p>
Chris@0 225
Chris@0 226 <pre>
Chris@0 227 &lt;pre&gt;&lt;code class="ruby"&gt;
Chris@0 228 Place you code here.
Chris@0 229 &lt;/code&gt;&lt;/pre&gt;
Chris@0 230 </pre>
Chris@0 231
Chris@0 232 <p>Example:</p>
Chris@0 233
Chris@0 234 <pre><code class="ruby CodeRay"><span class="no"> 1</span> <span class="c"># The Greeter class</span>
Chris@0 235 <span class="no"> 2</span> <span class="r">class</span> <span class="cl">Greeter</span>
Chris@0 236 <span class="no"> 3</span> <span class="r">def</span> <span class="fu">initialize</span>(name)
Chris@0 237 <span class="no"> 4</span> <span class="iv">@name</span> = name.capitalize
Chris@0 238 <span class="no"> 5</span> <span class="r">end</span>
Chris@0 239 <span class="no"> 6</span>
Chris@0 240 <span class="no"> 7</span> <span class="r">def</span> <span class="fu">salute</span>
Chris@0 241 <span class="no"> 8</span> puts <span class="s"><span class="dl">"</span><span class="k">Hello </span><span class="il"><span class="idl">#{</span><span class="iv">@name</span><span class="idl">}</span></span><span class="k">!</span><span class="dl">"</span></span>
Chris@0 242 <span class="no"> 9</span> <span class="r">end</span>
Chris@0 243 <span class="no"><strong>10</strong></span> <span class="r">end</span>
Chris@0 244 </code>
Chris@0 245 </pre>
Chris@0 246 </body>
Chris@0 247 </html>