Project

General

Profile

RedmineTextFormatting » History » Version 1

Jean-Philippe Lang, 2007-10-13 11:13

1 1 Jean-Philippe Lang
h1. Wiki formatting
2
3
{{>TOC}}
4
5
Redmine supports "Textile":http://hobix.com/textile/ syntax for wikis and almost anything that has a text description (issues, news, messages, changesets...).
6
7
h2. Links
8
9
Redmine allows hyperlinking between issues, changesets and wiki pages from anywhere wiki formatting is used.
10
11
h3. Links to issues and changesets
12
13
* Link to an issue: #1
14
* Link to a changeset: r5
15
16
h3. Wiki links
17
18
* *[[Guide]]* displays a link to the page named 'Guide': [[Guide]]
19
* *[[Guide|User manual]]* displays the a link to the same page but with a different text: [[Guide|User manual]]
20
21
You can also link to pages of an other project wiki:
22
23
* *[[sandbox:some page]]* displays a link to the page named 'some page' of the Sandbox wiki
24
* *[[sandbox:]]* displays a link to the Sandbox wiki main page
25
26
Wiki links are displayed in red if the page doesn't yet exist, eg: [[Nonexistent page]].
27
28
h3. Links to an external URL
29
30
HTTP URLs and email addresses are automatically turned into clickable links: http://www.redmine.org, someone@foo.bar
31
32
h2. Text formatting
33
34
h3. Font style
35
36
<pre><code>* *bold*
37
* _italic_
38
* _*bold italic*_
39
* +underline+
40
* -strike-through-
41
</code></pre>
42
43
Display:
44
45
 * *bold*
46
 * _italic_
47
 * _*bold italic*_
48
 * +underline+
49
 * -strike-through-
50
51
h2. Inline images
52
53
* *&#33;image_url&#33;* displays an image located at image_url (textile syntax)
54
* *&#33;>image_url&#33;* right floating image
55
* If you have an image attached to your wiki page, it can be displayed inline using its filename: *&#33;attached_image.png&#33;*
56
57
58
h3. Headings
59
60
<pre><code>h1. Heading
61
h2. Subheading
62
h3. Subheading
63
</code></pre>
64
65
h3. Paragraphs
66
67
<pre><code>p>. right aligned
68
p=. centered
69
</code></pre>
70
71
p=. !http://www.redmine.org/images/6t.png!
72
_Redmine screenshot_
73
74
h3. Blockquotes
75
76
Start the paragraph with *bq.*
77
78
<pre><code>bq. Rails is a full-stack framework for developing database-backed web applications according to the Model-View-Control pattern.
79
To go live, all you need to add is a database and a web server.
80
</code></pre>
81
82
Display:
83
84
bq. Rails is a full-stack framework for developing database-backed web applications according to the Model-View-Control pattern.
85
To go live, all you need to add is a database and a web server.
86
87
h3. Table of content
88
89
<pre><code>{{toc}} => left aligned toc
90
{{>toc}} => right aligned toc
91
</code></pre>
92
93
h2. Code highlighting
94
95
Code highlightment relies on "CodeRay":http://coderay.rubychan.de/, a fast syntax highlighting library written completely in Ruby. It currently supports c, html, rhtml, ruby, scheme, xml languages.
96
97
You can highlight code in your wiki page using this syntax:
98
99
<pre><code><pre><code class="ruby">
100
  Place you code here.
101
</code></pre>
102
</pre></code>
103
104
Example:
105
106
<pre><code class="ruby">
107
# The Greeter class
108
class Greeter
109
  def initialize(name)
110
    @name = name.capitalize
111
  end
112
 
113
  def salute
114
    puts "Hello #{@name}!"
115
  end
116
end
117
</pre></code>