RedmineTextFormattingMarkdown » History » Version 8

Hans Ginzel, 2015-12-07 15:39
Unordered lists converted to Markdown

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