Below is Textile formatting. For Markdown formatting see RedmineTextFormattingMarkdown.
For limitations of current Textile support see #6269, #10078 (Definition Lists).
Redmine allows hyperlinking between resources (wiki pages, issues, documents...) from anywhere text formatting is used.
Wiki links:
You can also link to pages of another project's wiki (using the project identifier):
Wiki links are displayed in red if the page doesn't exist yet, eg: Nonexistent page.
Links to other resources:
Escaping:
Email addresses are automatically turned into clickable links:
For things such as headlines, bold, tables, lists, Redmine supports Textile syntax. 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.
JPL(Jean-Philippe Lang)
displays:
JPL
* *bold*
* _italic_
* *_bold italic_*
* +underline+
* -strike-through-
* Plain ^superscript^
* Plain ~subscript~
* @inline monospace@
* normal *bold* _italic_ normal;E=mc ^2^
* normal<notextile></notextile>*bold*<notextile></notextile>_italic_<notextile></notextile>normal;E=mc<notextile></notextile>^2^
* Escaping: <notextile>*bold* _italic_ @inlinemono@</notextile> Alternative using HTML-codes: *bold* _italic_ @inlinemono@
* <pre>*some lines* some "link":http://www.redmine.org</pre>
* <pre><notextile></notextile>*some lines* some "link":http://www.redmine.org</pre>
displays:
inline monospace
*some lines* some "link":http://www.redmine.org
some lines some link
* %{color:red}red% %{color:green}green% %{color:yellow}yellow% %{color:#82B6E1}blue'ish%
* %{color:red}red%<notextile></notextile>%{color:green}green%<notextile></notextile>%{color:yellow}yellow%<notextile></notextile>%{color:#82B6E1}blue'ish%
* %{background:lightgreen}Lightgreen Background% %{background:yellow}Yellow Background%
* %{background:lightgreen}Lightgreen Background%<notextile></notextile>%{background:yellow}Yellow Background%
displays:
If you have an image attached to your wiki page, it can be displayed inline using its filename: !attached_image.png!
You can also apply a CSS style to the image in the same ways as styling SPANs. The code !{width: 100%}attached_image.png! will make the image adjusts to the parent's width.
h1. Heading
h2. Subheading
h3. Subheading
Redmine assigns an anchor to each of those headings thus you can link to them with "#Heading", "#Subheading" and so forth.
p. left aligned
p(. left ident 1em
p((. left ident 2em
as well as for following lines
p>. right aligned
p)))>. right ident 3em
p=. This is centered paragraph.
displays;
left aligned
left ident 1em
left ident 2em
as well as for following lines
right aligned
right ident 3em
This is centered paragraph.
----
displays:
<pre>*Your text won't become bold*</pre>
displays:
*Your text won't become bold*
Start the paragraph with bq.:
bq. Rails is a full-stack framework for developing database-backed web applications according to the Model-View-Control pattern.
To go live, all you need to add is a database and a web server.
displays:
Rails is a full-stack framework for developing database-backed web applications according to the Model-View-Control pattern.
To go live, all you need to add is a database and a web server.
You can also use > at the beginning of each line and stack them for nested quotes:
>> Rails is a full-stack framework for developing database-backed web applications according to the Model-View-Control pattern. >> To go live, all you need to add is a database and a web server. > Great!
displays:
Rails is a full-stack framework for developing database-backed web applications according to the Model-View-Control pattern.
To go live, all you need to add is a database and a web server.Great!
* Item 1 * Item 2 ** Item 21 ** Item 22 * Item 3
displays:
# Item 1 # Item 2 # Item 3 ## Item 3.1 ## Item 3.2
displays:
|_.UserID |_.Name |_.Group |_. attribute list | |Starting with | a | simple |row | |\3=.IT |<. align left | |1 |Artur Pirozhkov |/2.Users |>. align right | |2 |Vasya Rogov |=. center | |3 |John Smith |Admin (root) |^. valign top | |4 |- |Nobody (anonymous) |~. valign bottom |
displays (all multiple spaces are replaced by 1 space):
UserID | Name | Group | attribute list |
---|---|---|---|
Starting with | a | simple | row |
IT | align left | ||
1 | Artur Pirozhkov | Users | align right |
2 | Vasya Rogov | center | |
3 | John Smith | Admin (root) |
valign top |
4 | - | Nobody (anonymous) |
valign bottom |
If you want to include pipe characters inside your table (e.g. for Wiki links), you need to prevent textile from interpreting them:
Input | Output |
---|---|
<notextile>|</notextile> | | |
{{toc}} => left aligned toc
{{>toc}} => right aligned toc
Please keep in mind, that the toc-tag needs an empty line above and underneath it and no other text before and after it.
Example:
h1. headLineOne
h2. something
{{toc}}
h2. something more
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:
hello_world
Sample macro.
macro_list
Displays a list of all available macros, including description if available.
child_pages
Displays a list of child pages. With no argument, it displays the child pages of the current wiki page. Examples:
!{{child_pages}} -- can be used from a wiki page only
!{{child_pages(depth=2)}} -- display 2 levels nesting only
include
Include a wiki page. Example:
!{{include(Foo)}}
or to include a page of a specific project wiki:
!{{include(projectname:Foo)}}
collapse
Inserts of collapsed block of text. Example:
{{collapse(View details...)
This is a block of text that is collapsed by default.
It can be expanded by clicking a link.
}}
thumbnail
Displays a clickable thumbnail of an attached image. Examples:
{{thumbnail(image.png)}} {{thumbnail(image.png, size=300, title=Thumbnail)}}
sample_macro
Sample macro
Code highlighting relies on CodeRay, 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.
You can highlight code in your wiki page using this syntax:
<pre><code class="ruby">
Place your code here.
</code></pre>
Example:
# The Greeter class
class Greeter
def initialize(name)
@name = name.capitalize
end
def salute
puts "Hello #{@name}!"
end
end