@@ -53,6 +53,7 table td h3 { font-size: 1.2em; text-align: left; } | |||
|
53 | 53 | <tr><th></th><td>Issue #12</td><td>Issue <a href="#">#12</a></td></tr> |
|
54 | 54 | <tr><th></th><td>Revision r43</td><td>Revision <a href="#">r43</a></td></tr> |
|
55 | 55 | <tr><th></th><td>commit:"f30e13e43"</td><td><a href="#">f30e13e4</a></td></tr> |
|
56 | <tr><th></th><td>source:some/file</td><td><a href="#">source:some/file</a></td></tr> | |
|
56 | 57 | |
|
57 | 58 | <tr><th colspan="3">Inline images</th></tr> |
|
58 | 59 | <tr><th><img src="../../images/jstoolbar/bt_img.png" style="border: 1px solid #bbb;" alt="Image" /></th><td>!<em>image_url</em>!</td><td></td></tr> |
@@ -3,11 +3,99 | |||
|
3 | 3 | <head> |
|
4 | 4 | <title>RedmineWikiFormatting</title> |
|
5 | 5 | <meta http-equiv="content-type" content="text/html; charset=utf-8" /> |
|
6 | <style> | |
|
6 | <style type="text/css"> | |
|
7 | 7 | body { font:80% Verdana,Tahoma,Arial,sans-serif; } |
|
8 | 8 | h1, h2, h3, h4 { font-family: Trebuchet MS,Georgia,"Times New Roman",serif; } |
|
9 | pre, code { font-size:120%; } | |
|
10 | pre code { font-size:100%; } | |
|
11 | pre { | |
|
12 | margin: 1em 1em 1em 1.6em; | |
|
13 | padding: 2px; | |
|
14 | background-color: #fafafa; | |
|
15 | border: 1px solid #dadada; | |
|
16 | width:95%; | |
|
17 | overflow-x: auto; | |
|
18 | } | |
|
19 | a.new { color: #b73535; } | |
|
20 | ||
|
21 | .CodeRay .af { color:#00C } | |
|
22 | .CodeRay .an { color:#007 } | |
|
23 | .CodeRay .av { color:#700 } | |
|
24 | .CodeRay .aw { color:#C00 } | |
|
25 | .CodeRay .bi { color:#509; font-weight:bold } | |
|
26 | .CodeRay .c { color:#666; } | |
|
27 | ||
|
28 | .CodeRay .ch { color:#04D } | |
|
29 | .CodeRay .ch .k { color:#04D } | |
|
30 | .CodeRay .ch .dl { color:#039 } | |
|
31 | ||
|
32 | .CodeRay .cl { color:#B06; font-weight:bold } | |
|
33 | .CodeRay .co { color:#036; font-weight:bold } | |
|
34 | .CodeRay .cr { color:#0A0 } | |
|
35 | .CodeRay .cv { color:#369 } | |
|
36 | .CodeRay .df { color:#099; font-weight:bold } | |
|
37 | .CodeRay .di { color:#088; font-weight:bold } | |
|
38 | .CodeRay .dl { color:black } | |
|
39 | .CodeRay .do { color:#970 } | |
|
40 | .CodeRay .ds { color:#D42; font-weight:bold } | |
|
41 | .CodeRay .e { color:#666; font-weight:bold } | |
|
42 | .CodeRay .en { color:#800; font-weight:bold } | |
|
43 | .CodeRay .er { color:#F00; background-color:#FAA } | |
|
44 | .CodeRay .ex { color:#F00; font-weight:bold } | |
|
45 | .CodeRay .fl { color:#60E; font-weight:bold } | |
|
46 | .CodeRay .fu { color:#06B; font-weight:bold } | |
|
47 | .CodeRay .gv { color:#d70; font-weight:bold } | |
|
48 | .CodeRay .hx { color:#058; font-weight:bold } | |
|
49 | .CodeRay .i { color:#00D; font-weight:bold } | |
|
50 | .CodeRay .ic { color:#B44; font-weight:bold } | |
|
51 | ||
|
52 | .CodeRay .il { background: #eee } | |
|
53 | .CodeRay .il .il { background: #ddd } | |
|
54 | .CodeRay .il .il .il { background: #ccc } | |
|
55 | .CodeRay .il .idl { font-weight: bold; color: #888 } | |
|
56 | ||
|
57 | .CodeRay .in { color:#B2B; font-weight:bold } | |
|
58 | .CodeRay .iv { color:#33B } | |
|
59 | .CodeRay .la { color:#970; font-weight:bold } | |
|
60 | .CodeRay .lv { color:#963 } | |
|
61 | .CodeRay .oc { color:#40E; font-weight:bold } | |
|
62 | .CodeRay .of { color:#000; font-weight:bold } | |
|
63 | .CodeRay .op { } | |
|
64 | .CodeRay .pc { color:#038; font-weight:bold } | |
|
65 | .CodeRay .pd { color:#369; font-weight:bold } | |
|
66 | .CodeRay .pp { color:#579 } | |
|
67 | .CodeRay .pt { color:#339; font-weight:bold } | |
|
68 | .CodeRay .r { color:#080; font-weight:bold } | |
|
69 | ||
|
70 | .CodeRay .rx { background-color:#fff0ff } | |
|
71 | .CodeRay .rx .k { color:#808 } | |
|
72 | .CodeRay .rx .dl { color:#404 } | |
|
73 | .CodeRay .rx .mod { color:#C2C } | |
|
74 | .CodeRay .rx .fu { color:#404; font-weight: bold } | |
|
75 | ||
|
76 | .CodeRay .s { background-color:#fff0f0 } | |
|
77 | .CodeRay .s .s { background-color:#ffe0e0 } | |
|
78 | .CodeRay .s .s .s { background-color:#ffd0d0 } | |
|
79 | .CodeRay .s .k { color:#D20 } | |
|
80 | .CodeRay .s .dl { color:#710 } | |
|
81 | ||
|
82 | .CodeRay .sh { background-color:#f0fff0 } | |
|
83 | .CodeRay .sh .k { color:#2B2 } | |
|
84 | .CodeRay .sh .dl { color:#161 } | |
|
85 | ||
|
86 | .CodeRay .sy { color:#A60 } | |
|
87 | .CodeRay .sy .k { color:#A60 } | |
|
88 | .CodeRay .sy .dl { color:#630 } | |
|
89 | ||
|
90 | .CodeRay .ta { color:#070 } | |
|
91 | .CodeRay .tf { color:#070; font-weight:bold } | |
|
92 | .CodeRay .ts { color:#D70; font-weight:bold } | |
|
93 | .CodeRay .ty { color:#339; font-weight:bold } | |
|
94 | .CodeRay .v { color:#036 } | |
|
95 | .CodeRay .xt { color:#444 } | |
|
9 | 96 | </style> |
|
10 | 97 | </head> |
|
98 | ||
|
11 | 99 | <body> |
|
12 | 100 | <h1><a name="1" class="wiki-page"></a>Wiki formatting</h1> |
|
13 | 101 | |
@@ -50,7 +138,7 h1, h2, h3, h4 { font-family: Trebuchet MS,Georgia,"Times New Roman",serif; } | |||
|
50 | 138 | <p>Wiki links are displayed in red if the page doesn't exist yet, eg: <a href="Nonexistent_page.html" class="wiki-page new">Nonexistent page</a>.</p> |
|
51 | 139 | |
|
52 | 140 | |
|
53 |
<p>Links to others resources (0. |
|
|
141 | <p>Links to others resources (0.7):</p> | |
|
54 | 142 | |
|
55 | 143 | |
|
56 | 144 | <ul> |
@@ -85,7 +173,23 h1, h2, h3, h4 { font-family: Trebuchet MS,Georgia,"Times New Roman",serif; } | |||
|
85 | 173 | </ul> |
|
86 | 174 | |
|
87 | 175 | |
|
88 | <p>Escaping (0.6.devel.1064 and above):</p> | |
|
176 | <ul> | |
|
177 | <li>Repository files | |
|
178 | ||
|
179 | <ul> | |
|
180 | <li><strong>source:some/file</strong> -- Link to the file located at /some/file in the project's repository</li> | |
|
181 | <li><strong>source:some/file@52</strong> -- Link to the file's revision 52</li> | |
|
182 | ||
|
183 | <li><strong>source:some/file#L120</strong> -- Link to line 120 of the file</li> | |
|
184 | <li><strong>source:some/file@52#L120</strong> -- Link to line 120 of the file's revision 52</li> | |
|
185 | <li><strong>export:some/file</strong> -- Force the download of the file</li> | |
|
186 | </ul></li> | |
|
187 | ||
|
188 | </ul> | |
|
189 | ||
|
190 | ||
|
191 | ||
|
192 | <p>Escaping (0.7):</p> | |
|
89 | 193 | |
|
90 | 194 | |
|
91 | 195 | <ul> |
@@ -125,12 +229,13 http://www.redmine.org, someone@foo.bar | |||
|
125 | 229 | <h3><a name="6" class="wiki-page"></a>Font style</h3> |
|
126 | 230 | |
|
127 | 231 | |
|
128 | <pre><code>* *bold* | |
|
232 | <pre> | |
|
233 | * *bold* | |
|
129 | 234 | * _italic_ |
|
130 | 235 | * _*bold italic*_ |
|
131 | 236 | * +underline+ |
|
132 | 237 | * -strike-through- |
|
133 | </code></pre> | |
|
238 | </pre> | |
|
134 | 239 | |
|
135 | 240 | <p>Display:</p> |
|
136 | 241 | |
@@ -157,17 +262,19 http://www.redmine.org, someone@foo.bar | |||
|
157 | 262 | <h3><a name="8" class="wiki-page"></a>Headings</h3> |
|
158 | 263 | |
|
159 | 264 | |
|
160 | <pre><code>h1. Heading | |
|
265 | <pre> | |
|
266 | h1. Heading | |
|
161 | 267 | h2. Subheading |
|
162 | 268 | h3. Subheading |
|
163 | </code></pre> | |
|
269 | </pre> | |
|
164 | 270 | |
|
165 | 271 | <h3><a name="9" class="wiki-page"></a>Paragraphs</h3> |
|
166 | 272 | |
|
167 | 273 | |
|
168 | <pre><code>p>. right aligned | |
|
274 | <pre> | |
|
275 | p>. right aligned | |
|
169 | 276 | p=. centered |
|
170 | </code></pre> | |
|
277 | </pre> | |
|
171 | 278 | |
|
172 | 279 | <p style="text-align:center;">This is centered paragraph.</p> |
|
173 | 280 | |
@@ -178,9 +285,10 p=. centered | |||
|
178 | 285 | <p>Start the paragraph with <strong>bq.</strong></p> |
|
179 | 286 | |
|
180 | 287 | |
|
181 | <pre><code>bq. Rails is a full-stack framework for developing database-backed web applications according to the Model-View-Control pattern. | |
|
288 | <pre> | |
|
289 | bq. Rails is a full-stack framework for developing database-backed web applications according to the Model-View-Control pattern. | |
|
182 | 290 | To go live, all you need to add is a database and a web server. |
|
183 | </code></pre> | |
|
291 | </pre> | |
|
184 | 292 | |
|
185 | 293 | <p>Display:</p> |
|
186 | 294 | |
@@ -193,9 +301,10 To go live, all you need to add is a database and a web server. | |||
|
193 | 301 | <h3><a name="11" class="wiki-page"></a>Table of content</h3> |
|
194 | 302 | |
|
195 | 303 | |
|
196 | <pre><code>{{toc}} => left aligned toc | |
|
304 | <pre> | |
|
305 | {{toc}} => left aligned toc | |
|
197 | 306 | {{>toc}} => right aligned toc |
|
198 | </code></pre> | |
|
307 | </pre> | |
|
199 | 308 | |
|
200 | 309 | <h2><a name="12" class="wiki-page"></a>Macros</h2> |
|
201 | 310 | |
@@ -218,10 +327,11 To go live, all you need to add is a database and a web server. | |||
|
218 | 327 | <p>You can highlight code in your wiki page using this syntax:</p> |
|
219 | 328 | |
|
220 | 329 | |
|
221 | <pre><code><pre><code class="ruby"> | |
|
330 | <pre> | |
|
331 | <pre><code class="ruby"> | |
|
222 | 332 | Place you code here. |
|
223 | 333 | </code></pre> |
|
224 | </pre></code> | |
|
334 | </pre> | |
|
225 | 335 | |
|
226 | 336 | <p>Example:</p> |
|
227 | 337 | |
@@ -236,6 +346,7 To go live, all you need to add is a database and a web server. | |||
|
236 | 346 | <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> |
|
237 | 347 | <span class="no"> 9</span> <span class="r">end</span> |
|
238 | 348 | <span class="no"><strong>10</strong></span> <span class="r">end</span> |
|
239 |
</ |
|
|
349 | </code> | |
|
350 | </pre> | |
|
240 | 351 | </body> |
|
241 | 352 | </html> |
General Comments 0
You need to be logged in to leave comments.
Login now