Project

General

Profile

RedmineTextFormatting » History » Version 5

Jean-Philippe Lang, 2008-01-12 11:50
external links details

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