RedmineTextFormattingTextile » History » Version 3

Hiroo Hayashi, 2016-07-20 09:57
changes to be more consistent. merge some lines which were only in source:trunk/public/help/en/wiki_syntax_detailed_textile.html . refs #16373

1 1 Hans Ginzel
h1. Textile formatting
2 1 Hans Ginzel
3 3 Hiroo Hayashi
Below is *Textile* formatting. For *Markdown* formatting see [[RedmineTextFormattingMarkdown]].
4 3 Hiroo Hayashi
For limitations of current Textile support see #6269, #10078 (Definition Lists).
5 1 Hans Ginzel
6 1 Hans Ginzel
{{>TOC}}
7 1 Hans Ginzel
8 1 Hans Ginzel
h2. Links
9 1 Hans Ginzel
10 1 Hans Ginzel
h3. Redmine links
11 1 Hans Ginzel
12 3 Hiroo Hayashi
Redmine allows hyperlinking between resources (wiki pages, issues, documents...) from anywhere text formatting is used.
13 1 Hans Ginzel
14 1 Hans Ginzel
Wiki links:
15 1 Hans Ginzel
16 1 Hans Ginzel
* *[[Guide]]* displays a link to the page named 'Guide': [[Guide]]
17 3 Hiroo Hayashi
* *[[Guide#further-reading]]* takes you to the anchor "further-reading". Headings get automatically assigned anchors so that you can refer to them: [[Guide#further-reading]]
18 1 Hans Ginzel
* *[[Guide|User manual]]* displays a link to the same page but with different text: [[Guide|User manual]]
19 1 Hans Ginzel
* *[[Guide#User-guide|User guide]]* displays a link to the header on the same page with different text: [[Guide#User-guide|User guide]]
20 1 Hans Ginzel
21 1 Hans Ginzel
You can also link to pages of another project's wiki (using the project identifier):
22 1 Hans Ginzel
23 1 Hans Ginzel
* *[[sandbox:some page]]* displays a link to the page named 'Some page' of the Sandbox wiki
24 1 Hans Ginzel
* *[[sandbox:]]* displays a link to the Sandbox wiki main page
25 1 Hans Ginzel
26 1 Hans Ginzel
Wiki links are displayed in red if the page doesn't exist yet, eg: [[Nonexistent page]].
27 1 Hans Ginzel
28 3 Hiroo Hayashi
Links to other resources:
29 1 Hans Ginzel
30 3 Hiroo Hayashi
* Issues:
31 3 Hiroo Hayashi
32 3 Hiroo Hayashi
  * *!#124* (link to an issue: displays #124, link is striked-through if the issue is closed)
33 3 Hiroo Hayashi
  * *!#124-6*, or *!#124#note-6* (link to an issue note: displays #124-6, or #124#note-6)
34 3 Hiroo Hayashi
35 1 Hans Ginzel
* Documents:
36 1 Hans Ginzel
37 1 Hans Ginzel
  * *!document#17* (link to document with id 17)
38 1 Hans Ginzel
  * *!document:Greetings* (link to the document with title "Greetings")
39 1 Hans Ginzel
  * *!document:"Some document"* (double quotes can be used when document title contains spaces)
40 1 Hans Ginzel
  * *!sandbox:document:"Some document"* (link to a document with title "Some document" in project identifier "sandbox")
41 1 Hans Ginzel
42 1 Hans Ginzel
* Versions:
43 1 Hans Ginzel
44 1 Hans Ginzel
  * *!version#3* (link to version with id 3)
45 1 Hans Ginzel
  * *!version:1.0.0* (link to version named "1.0.0")
46 1 Hans Ginzel
  * *!version:"1.0 beta 2"* (double quotes can be used when version name contains spaces)
47 1 Hans Ginzel
  * *!sandbox:version:1.0.0* (link to version "1.0.0" in the project identifier "sandbox")
48 1 Hans Ginzel
49 1 Hans Ginzel
* Attachments:
50 1 Hans Ginzel
  
51 1 Hans Ginzel
  * *!attachment:file.zip* (link to the attachment of the current object named file.zip)
52 3 Hiroo Hayashi
  * *!attachment:"file name.zip"* (double quotes can be used when the filename contains non word characters)
53 1 Hans Ginzel
  * 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)
54 1 Hans Ginzel
55 1 Hans Ginzel
* Changesets:
56 1 Hans Ginzel
57 3 Hiroo Hayashi
  * *!r758* (link to a changeset, displays r758)
58 1 Hans Ginzel
  * *!commit:c6f4d0fd* (link to a changeset with a non-numeric hash)
59 1 Hans Ginzel
  * *!svn1|r758* (link to a changeset of a specific repository, for projects with multiple repositories)
60 1 Hans Ginzel
  * *!commit:hg|c6f4d0fd* (link to a changeset with a non-numeric hash of a specific repository)
61 1 Hans Ginzel
  * *!sandbox:r758* (link to a changeset of another project)
62 1 Hans Ginzel
  * *!sandbox:commit:c6f4d0fd* (link to a changeset with a non-numeric hash of another project identifier)
63 1 Hans Ginzel
64 1 Hans Ginzel
* Repository files:
65 1 Hans Ginzel
66 3 Hiroo Hayashi
  * *!source:some/file* (link to the file located at /some/file in the project's repository)
67 3 Hiroo Hayashi
  * *!source:"some file"* (link to the file with non word characters in the path)
68 3 Hiroo Hayashi
  * *!source:some/file@52* (link to the file's revision 52)
69 3 Hiroo Hayashi
  * *!source:some/file#L120* (link to line 120 of the file)
70 3 Hiroo Hayashi
  * *!source:some/file@52#L120* (link to line 120 of the file's revision 52)
71 3 Hiroo Hayashi
  * *!source:repo_identifier|some/file* (link to a file of a specific repository, for projects with multiple repositories)
72 3 Hiroo Hayashi
  * *!sandbox:source:some/file* (link to the file in the project identifier "sandbox")
73 3 Hiroo Hayashi
  * *!export:some/file* (force the download of the file)
74 1 Hans Ginzel
 
75 1 Hans Ginzel
* Forums:
76 1 Hans Ginzel
77 1 Hans Ginzel
  * *!forum#2* (link to forum with id 2)
78 1 Hans Ginzel
  * *!forum:Discussion* (link to forum with name "Discussion")
79 1 Hans Ginzel
  * *!forum:"Help and more"* (double quotes can be used when forum name contains spaces)
80 1 Hans Ginzel
81 1 Hans Ginzel
* Forum messages:
82 1 Hans Ginzel
83 1 Hans Ginzel
  * *!message#1218* (link to message with id 1218)
84 1 Hans Ginzel
85 1 Hans Ginzel
* News items
86 1 Hans Ginzel
87 1 Hans Ginzel
  * *!news#1* (link to news item with id 1)
88 1 Hans Ginzel
  * *!news:Greetings* (link to news item with name "Greetings")
89 1 Hans Ginzel
  * *!news:"eCookbook first release !"* (double quotes can be used when news item name contains spaces)
90 1 Hans Ginzel
91 1 Hans Ginzel
* Projects:
92 1 Hans Ginzel
93 1 Hans Ginzel
  * *!project#3* (link to project with id 3)
94 1 Hans Ginzel
  * *!project:someproject* (link to project with name "someproject")
95 1 Hans Ginzel
  * *!project:"Multiple words project"* (double quotes can be used when project name contains spaces)
96 1 Hans Ginzel
97 1 Hans Ginzel
Escaping:
98 1 Hans Ginzel
99 1 Hans Ginzel
* You can prevent Redmine links from being parsed by preceding them with an exclamation mark: !
100 1 Hans Ginzel
101 1 Hans Ginzel
h3. External links
102 1 Hans Ginzel
103 1 Hans Ginzel
HTTP URLs are automatically turned into clickable links: 
104 1 Hans Ginzel
* *http://www.redmine.org* -- External link to the redmine website: http://www.redmine.org
105 1 Hans Ginzel
106 1 Hans Ginzel
HTTP URLs can also use different text than the link itself:
107 1 Hans Ginzel
* *"Redmine web site":http://www.redmine.org* -- External link with different text: "Redmine web site":http://www.redmine.org
108 1 Hans Ginzel
* *!http://www.redmine.org/attachments/7069/Redmine_logo.png(Redmine web site)!:http://www.redmine.org* -- External image with a title that links to an URL: 
109 1 Hans Ginzel
110 1 Hans Ginzel
p=. !http://www.redmine.org/attachments/7069/Redmine_logo.png(Redmine web site)!:http://www.redmine.org
111 1 Hans Ginzel
112 1 Hans Ginzel
h3. Email addresses
113 1 Hans Ginzel
114 1 Hans Ginzel
Email addresses are automatically turned into clickable links:
115 1 Hans Ginzel
116 3 Hiroo Hayashi
* *someone@foo.bar* -- Link to an email address: someone@foo.bar
117 1 Hans Ginzel
* *"Email someone":mailto:someone@foo.bar* -- Email link with different text: "Email someone":mailto:someone@foo.bar
118 1 Hans Ginzel
119 1 Hans Ginzel
More complex email instructions can be added to an email link.  A default subject, default body and CC information can be defined.  Note that spaces in any of these fields need to be replaced with the code %20.
120 1 Hans Ginzel
* *"Email webmaster and admin":mailto:webmaster@foo.bar?cc=admin@foo.bar* -- Email to webmaster, CC admin:  "Email webmaster and admin":mailto:webmaster@foo.bar?cc=admin@foo.bar
121 1 Hans Ginzel
* *"Email someone for help":mailto:someone@foo.bar?subject=Website%20Help* -- Email link with the subject "Website Help": "Email someone for help":mailto:someone@foo.bar?subject=Website%20Help
122 1 Hans Ginzel
* *"Email someone for help":mailto:someone@foo.bar?subject=Website%20Help&body=My%20problem%20is%20* -- Email link with the subject "Website Help" and a default body: "Email someone for help":mailto:someone@foo.bar?subject=Website%20Help&body=My%20problem%20is%20
123 1 Hans Ginzel
124 1 Hans Ginzel
h2. Text formatting
125 1 Hans Ginzel
126 1 Hans Ginzel
For things such as headlines, bold, tables, lists, Redmine supports "Textile syntax":http://en.wikipedia.org/wiki/Textile_%28markup_language%29.  See http://redcloth.org/hobix.com/textile/ for information on using any of these features.  A few samples are included below, but the engine is capable of much more of that.
127 1 Hans Ginzel
128 1 Hans Ginzel
h3. Acronym
129 1 Hans Ginzel
130 1 Hans Ginzel
<pre>
131 1 Hans Ginzel
JPL(Jean-Philippe Lang)
132 1 Hans Ginzel
</pre>
133 1 Hans Ginzel
134 3 Hiroo Hayashi
displays:
135 1 Hans Ginzel
136 1 Hans Ginzel
JPL(Jean-Philippe Lang)
137 1 Hans Ginzel
138 1 Hans Ginzel
h3. Font style
139 1 Hans Ginzel
140 1 Hans Ginzel
<pre><code>* *bold*
141 1 Hans Ginzel
* _italic_
142 1 Hans Ginzel
* *_bold italic_*
143 1 Hans Ginzel
* +underline+
144 1 Hans Ginzel
* -strike-through-
145 1 Hans Ginzel
* Plain ^superscript^
146 1 Hans Ginzel
* Plain ~subscript~
147 1 Hans Ginzel
* @inline monospace@
148 1 Hans Ginzel
* <notextile>normal *bold* _italic_ normal;E=mc ^2^</notextile>
149 1 Hans Ginzel
* <notextile>normal<notextile></notextile>*bold*<notextile></notextile>_italic_<notextile></notextile>normal;E=mc<notextile></notextile>^2^</notextile>
150 1 Hans Ginzel
* <notextile>Escaping: <notextile>*bold* _italic_ @inlinemono@</notextile> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Alternative using HTML-codes: &#42;bold&#42; &#95;italic&#95; &#64;inlinemono&#64;</notextile>
151 1 Hans Ginzel
* <notextile><pre>*some lines*      some "link":http://www.redmine.org</pre></notextile>
152 1 Hans Ginzel
* <notextile><pre><notextile></notextile>*some lines*      some "link":http://www.redmine.org</pre></notextile>
153 1 Hans Ginzel
</code></pre>
154 1 Hans Ginzel
155 3 Hiroo Hayashi
displays:
156 1 Hans Ginzel
157 1 Hans Ginzel
 * *bold*
158 1 Hans Ginzel
 * _italic_
159 1 Hans Ginzel
 * *_bold italic_*
160 1 Hans Ginzel
 * +underline+
161 1 Hans Ginzel
 * -strike-through-
162 1 Hans Ginzel
 * Plain ^superscript^
163 1 Hans Ginzel
 * Plain ~subscript~
164 1 Hans Ginzel
 * @inline monospace@
165 1 Hans Ginzel
 * normal *bold* _italic_ normal;E=mc ^2^
166 1 Hans Ginzel
 * normal<notextile></notextile>*bold*<notextile></notextile>_italic_<notextile></notextile>normal;E=mc<notextile></notextile>^2^
167 1 Hans Ginzel
 * Escaping: <notextile>*bold* _italic_ @inlinemono@</notextile> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Alternative using HTML-codes: &#42;bold&#42; &#95;italic&#95; &#64;inlinemono&#64;
168 1 Hans Ginzel
 * <pre>*some lines*      some "link":http://www.redmine.org</pre>
169 1 Hans Ginzel
 * <pre><notextile></notextile>*some lines*      some "link":http://www.redmine.org</pre>
170 1 Hans Ginzel
171 3 Hiroo Hayashi
h3. Color
172 1 Hans Ginzel
173 1 Hans Ginzel
<pre><code><notextile>* %{color:red}red% %{color:green}green% %{color:yellow}yellow% %{color:#82B6E1}blue'ish%
174 1 Hans Ginzel
* %{color:red}red%<notextile></notextile>%{color:green}green%<notextile></notextile>%{color:yellow}yellow%<notextile></notextile>%{color:#82B6E1}blue'ish%
175 1 Hans Ginzel
* %{background:lightgreen}Lightgreen Background% %{background:yellow}Yellow Background%
176 1 Hans Ginzel
* %{background:lightgreen}Lightgreen Background%<notextile></notextile>%{background:yellow}Yellow Background%
177 1 Hans Ginzel
</notextile></code></pre>
178 1 Hans Ginzel
179 3 Hiroo Hayashi
displays:
180 1 Hans Ginzel
181 1 Hans Ginzel
 * %{color:red}red% %{color:green}green% %{color:yellow}yellow% %{color:#82B6E1}blue'ish%
182 1 Hans Ginzel
 * %{color:red}red%<notextile></notextile>%{color:green}green%<notextile></notextile>%{color:yellow}yellow%<notextile></notextile>%{color:#82B6E1}blue'ish%
183 1 Hans Ginzel
 * %{background:lightgreen}Lightgreen Background% %{background:yellow}Yellow Background%
184 1 Hans Ginzel
 * %{background:lightgreen}Lightgreen Background%<notextile></notextile>%{background:yellow}Yellow Background%
185 1 Hans Ginzel
186 1 Hans Ginzel
h3. Inline images
187 1 Hans Ginzel
188 1 Hans Ginzel
* *&#33;image_url&#33;* displays an image located at image_url (textile syntax)
189 1 Hans Ginzel
* *&#33;>image_url&#33;* right floating image
190 1 Hans Ginzel
* *&#33;image_url(Image title)&#33;* displays an image with an alt/title attribute
191 1 Hans Ginzel
* *&#33;image_url&#33;:URL* displays an image located at image_url with link URL added
192 1 Hans Ginzel
193 1 Hans Ginzel
If you have an image attached to your wiki page, it can be displayed inline using its filename: *&#33;attached_image.png&#33;*
194 1 Hans Ginzel
195 1 Hans Ginzel
You can also apply a CSS style to the image in the same ways as styling SPANs. The code *&#33;{width: 100%}attached_image.png&#33;* will make the image adjusts to the parent's width.
196 1 Hans Ginzel
197 1 Hans Ginzel
h3. Headings
198 1 Hans Ginzel
199 1 Hans Ginzel
<pre><code>h1. Heading
200 1 Hans Ginzel
201 1 Hans Ginzel
h2. Subheading
202 1 Hans Ginzel
203 1 Hans Ginzel
h3. Subheading
204 1 Hans Ginzel
</code></pre>
205 1 Hans Ginzel
206 1 Hans Ginzel
Redmine assigns an anchor to each of those headings thus you can link to them with "#Heading", "#Subheading" and so forth.
207 1 Hans Ginzel
208 1 Hans Ginzel
h3. Paragraphs
209 1 Hans Ginzel
210 1 Hans Ginzel
<pre><code>p. left aligned
211 1 Hans Ginzel
212 1 Hans Ginzel
  p(. left ident 1em
213 1 Hans Ginzel
214 1 Hans Ginzel
    p((. left ident 2em
215 1 Hans Ginzel
    as well as for following lines
216 1 Hans Ginzel
217 1 Hans Ginzel
                                                                                   p>. right aligned
218 1 Hans Ginzel
219 1 Hans Ginzel
                                                                        p)))>. right ident 3em
220 1 Hans Ginzel
221 1 Hans Ginzel
                           p=. This is centered paragraph.
222 1 Hans Ginzel
</code></pre>
223 1 Hans Ginzel
224 1 Hans Ginzel
h3. Horizontal rule 
225 1 Hans Ginzel
226 1 Hans Ginzel
@----@
227 1 Hans Ginzel
228 3 Hiroo Hayashi
displays:
229 3 Hiroo Hayashi
230 1 Hans Ginzel
----
231 1 Hans Ginzel
232 1 Hans Ginzel
233 1 Hans Ginzel
h3. Predefined
234 1 Hans Ginzel
235 1 Hans Ginzel
To escape wiki syntax
236 1 Hans Ginzel
<pre> <pre> *Your text won't become bold* </pre> </pre>
237 1 Hans Ginzel
238 3 Hiroo Hayashi
displays:
239 3 Hiroo Hayashi
240 1 Hans Ginzel
<pre> *Your text won't become bold* </pre>
241 1 Hans Ginzel
242 1 Hans Ginzel
h3. Blockquotes
243 1 Hans Ginzel
244 1 Hans Ginzel
Start the paragraph with *bq.*:
245 1 Hans Ginzel
246 1 Hans Ginzel
<pre><code>bq. Rails is a full-stack framework for developing database-backed web applications according to the Model-View-Control pattern.
247 1 Hans Ginzel
To go live, all you need to add is a database and a web server.
248 1 Hans Ginzel
</code></pre>
249 1 Hans Ginzel
250 3 Hiroo Hayashi
displays:
251 1 Hans Ginzel
252 1 Hans Ginzel
bq. Rails is a full-stack framework for developing database-backed web applications according to the Model-View-Control pattern.
253 1 Hans Ginzel
To go live, all you need to add is a database and a web server.
254 1 Hans Ginzel
255 1 Hans Ginzel
You can also use > at the beginning of each line and stack them for nested quotes:
256 1 Hans Ginzel
257 1 Hans Ginzel
<pre>
258 1 Hans Ginzel
>> Rails is a full-stack framework for developing database-backed web applications according to the Model-View-Control pattern.
259 1 Hans Ginzel
>> To go live, all you need to add is a database and a web server.
260 1 Hans Ginzel
> Great!
261 1 Hans Ginzel
</pre>
262 1 Hans Ginzel
263 3 Hiroo Hayashi
displays:
264 1 Hans Ginzel
265 1 Hans Ginzel
>>  Rails is a full-stack framework for developing database-backed web applications according to the Model-View-Control pattern.
266 1 Hans Ginzel
>>  To go live, all you need to add is a database and a web server.
267 1 Hans Ginzel
> Great!
268 1 Hans Ginzel
269 1 Hans Ginzel
h3. Unordered lists
270 1 Hans Ginzel
271 1 Hans Ginzel
<pre>
272 1 Hans Ginzel
* Item 1
273 1 Hans Ginzel
* Item 2
274 1 Hans Ginzel
** Item 21
275 1 Hans Ginzel
** Item 22
276 1 Hans Ginzel
* Item 3
277 1 Hans Ginzel
</pre>
278 1 Hans Ginzel
279 1 Hans Ginzel
displays:
280 1 Hans Ginzel
281 1 Hans Ginzel
* Item 1
282 1 Hans Ginzel
* Item 2
283 1 Hans Ginzel
** Item 21
284 1 Hans Ginzel
** Item 22
285 1 Hans Ginzel
* Item 3
286 1 Hans Ginzel
287 1 Hans Ginzel
h3. Ordered lists
288 1 Hans Ginzel
289 1 Hans Ginzel
<pre>
290 1 Hans Ginzel
# Item 1
291 1 Hans Ginzel
# Item 2
292 1 Hans Ginzel
# Item 3
293 1 Hans Ginzel
## Item 3.1
294 1 Hans Ginzel
## Item 3.2
295 1 Hans Ginzel
</pre>
296 1 Hans Ginzel
297 1 Hans Ginzel
displays:
298 1 Hans Ginzel
299 1 Hans Ginzel
# Item 1
300 1 Hans Ginzel
# Item 2
301 1 Hans Ginzel
# Item 3
302 1 Hans Ginzel
## Item 3.1
303 1 Hans Ginzel
## Item 3.2
304 1 Hans Ginzel
305 1 Hans Ginzel
h3. Tables
306 1 Hans Ginzel
307 1 Hans Ginzel
<pre>
308 1 Hans Ginzel
|_.UserID      |_.Name          |_.Group     |_. attribute list   |
309 1 Hans Ginzel
|Starting with | a              |   simple   |row                 |
310 1 Hans Ginzel
|\3=.IT                                      |<. align left       |
311 1 Hans Ginzel
|1             |Artur Pirozhkov |/2.Users    |>. align right      |
312 1 Hans Ginzel
|2             |Vasya Rogov     |=. center   |
313 1 Hans Ginzel
|3             |John Smith      |Admin
314 1 Hans Ginzel
                                 (root)      |^. valign top       |
315 1 Hans Ginzel
|4             |-               |Nobody
316 1 Hans Ginzel
                                 (anonymous) |~. valign bottom    |
317 1 Hans Ginzel
</pre>
318 1 Hans Ginzel
319 1 Hans Ginzel
displays (all multiple spaces are replaced by 1 space):
320 1 Hans Ginzel
321 1 Hans Ginzel
|_.UserID      |_.Name          |_.Group     |_. attribute list   |
322 1 Hans Ginzel
|Starting with | a              |   simple   |row                 |
323 1 Hans Ginzel
|\3=.IT                                      |<. align left       |
324 1 Hans Ginzel
|1             |Artur Pirozhkov |/2.Users    |>. align right      |
325 1 Hans Ginzel
|2             |Vasya Rogov     |=. center   |
326 1 Hans Ginzel
|3             |John Smith      |Admin
327 1 Hans Ginzel
                                 (root)      |^. valign top       |
328 1 Hans Ginzel
|4             |-               |Nobody
329 1 Hans Ginzel
                                 (anonymous) |~. valign bottom    |
330 1 Hans Ginzel
331 1 Hans Ginzel
If you want to include pipe characters inside your table (e.g. for Wiki links), you need to prevent textile from interpreting them:
332 1 Hans Ginzel
333 1 Hans Ginzel
|_.Input |_. Output|
334 1 Hans Ginzel
|*<notextile><notextile>|</notextile></notextile>*|<notextile>|</notextile>|
335 1 Hans Ginzel
336 1 Hans Ginzel
h3. Table of content
337 1 Hans Ginzel
338 1 Hans Ginzel
<pre><code>{{toc}} => left aligned toc
339 1 Hans Ginzel
{{>toc}} => right aligned toc
340 1 Hans Ginzel
</code></pre>
341 1 Hans Ginzel
342 1 Hans Ginzel
Please keep in mind, that the toc-tag needs an empty line above and underneath it and no other text before and after it.
343 1 Hans Ginzel
344 1 Hans Ginzel
Example:
345 1 Hans Ginzel
346 1 Hans Ginzel
<pre><code>
347 1 Hans Ginzel
h1. headLineOne
348 1 Hans Ginzel
349 1 Hans Ginzel
h2. something
350 1 Hans Ginzel
351 1 Hans Ginzel
{{toc}}
352 1 Hans Ginzel
353 1 Hans Ginzel
h2. something more
354 1 Hans Ginzel
</code></pre>
355 1 Hans Ginzel
356 1 Hans Ginzel
h2. Macros
357 1 Hans Ginzel
358 1 Hans Ginzel
Redmine includes a macros system that lets you add custom functions to insert dynamic content in formatted text. You can learn about writing your own macros in [[RedmineMacros]]. Redmine also includes a few builtin macros:
359 1 Hans Ginzel
360 1 Hans Ginzel
{{macro_list}}
361 1 Hans Ginzel
362 1 Hans Ginzel
h2. Code highlighting
363 1 Hans Ginzel
364 1 Hans Ginzel
Code highlighting relies on "CodeRay":http://coderay.rubychan.de/, a fast syntax highlighting library written completely in Ruby. It currently supports C, C++, CSS, Delphi, Diff, Groovy, HTML, Java, Javascript, JSON, Nitro-XHTML, PHP, Python, RHTML, Ruby, Scheme, SQL, XML and YAML code.
365 1 Hans Ginzel
366 1 Hans Ginzel
You can highlight code in your wiki page using this syntax:
367 1 Hans Ginzel
368 1 Hans Ginzel
<pre><code><pre><code class="ruby">
369 1 Hans Ginzel
  Place your code here.
370 1 Hans Ginzel
</code></pre>
371 1 Hans Ginzel
</code></pre>
372 1 Hans Ginzel
373 1 Hans Ginzel
Example:
374 1 Hans Ginzel
375 1 Hans Ginzel
<pre><code class="ruby">
376 1 Hans Ginzel
# The Greeter class
377 1 Hans Ginzel
class Greeter
378 1 Hans Ginzel
  def initialize(name)
379 1 Hans Ginzel
    @name = name.capitalize
380 1 Hans Ginzel
  end
381 1 Hans Ginzel
 
382 1 Hans Ginzel
  def salute
383 1 Hans Ginzel
    puts "Hello #{@name}!"
384 1 Hans Ginzel
  end
385 1 Hans Ginzel
end
386 1 Hans Ginzel
</code></pre>
387 1 Hans Ginzel
388 1 Hans Ginzel
h2. Translation
389 1 Hans Ginzel
390 1 Hans Ginzel
Note that the following translations may not be up to date. Please refer to the original english documentation if needed.
391 1 Hans Ginzel
392 1 Hans Ginzel
* [[BrRedmineWikiFormatting|Português Brasileiro]]
393 1 Hans Ginzel
* [[RusRedmineTextFormatting|Русский]]
394 1 Hans Ginzel
* [[FrRedmineWikiFormatting|French]]
395 1 Hans Ginzel
* [[KoreanWikiFormatting|Korean]]
396 1 Hans Ginzel
* [[TurkishWikiFormatting|Türkçe]]
397 1 Hans Ginzel
* [[TraditionalChineseWikiFormatting|繁體中文]]
398 1 Hans Ginzel
* [[SimplifiedChineseWikiFormatting|简体中文]]