Textile Reference

This reference explains the Textile markup language supported in AnTreNotes and Desktop TreNotes. It provides advanced formatting features using simple and intuitive syntax. When a Textile note is displayed, it is converted to well-formed HTML. Download the sample file to see how to apply Textile formatting to notes.

Paragraph

Each paragraph is separated by a blank line.

Textile note HTML output

This is a sample paragraph.

New paragraph
Line break here.

This is a sample paragraph.

New paragraph
Line break here.

Headings

Please note that you must include a blank line after a heading.

Textile note HTML output
h1. Heading 1

Some text...

h2. Heading 2

h3. Heading 3

h4. Heading 4

h5. Heading 5

h6. Heading 6

Heading 1

Some text...

Heading 2

Heading 3

Heading 4

Heading 5
Heading 6

Modifiers

These modifiers can alter the appearance of a sentence.

Textile note HTML output
This sentence has a footnote at the end[1].

fn1. Footnote 1 is explained here.

This sentence has a footnote at the end1.

1 Footnote 1 is explained here.

Paragraph 1

bq. Block quote

Paragraph 2

Paragraph 1

Block quote

Paragraph 2

This sentence has an _italic_ word by surrounding it with single underscore.

This sentence has an italic word.

This sentence has a *bold* word by surrounding it with single asterisk.

This sentence has a bold word by surrounding it with asterisks.

This _*word*_ is bold and italic.

This word is bold and italic.

Use double question marks to indicate ??citation??. The title of a book, for example.

Use double question marks to indicate citation. The title of a book, for example.

Surround with hyphens to use -strikeout font-.

Surround with hyphens to use strikeout font.

Surround with pluses to use +underline font+.

Surround with pluses to use underline font.

Use carets to indicate superscript such as x ^2^. Please note the space between x and the caret.

Use carets to indicate superscript such as x 2. Please note the space between x and the caret.

Use tildes to indicate subscript. Note the space between the variable and the subscript number: log ~2~ x.

Use tildes to indicate subscript. Note the space between the variable and the subscript number: log 2 x.

The car is %{color: red}red% and the ball is %{color: #8080c0}purple%. Note that colour value is in standard web colour format.

The car is red and the ball is purple. Note that colour value is in standard web colour format.

Source Code

Use the following methods to mark a block of text as computer source code.

Textile note HTML output
Call @startActivity()@ to launch a new activity.

Call startActivity() to launch a new activity.

Paragraph 1

bc. if(flag == 4) {
     // Do something
     b(text);
}

Paragraph 2

Paragraph 1

if(flag == 4) {
    // Do something
    b(text);
}

Paragraph 2

Paragraph Alignment

Paragraph alignment can be set using one of the follow markers. Please ensure there is a blank line between paragraphs.

Textile maker Description
p<. Some text... Align left
p>. Some text... Align right
p=. Some text... centred paragraph
p<>. Some text... Paragraph is justified

List

Textile note HTML output
# Numeric list
# Item 2
# Item 3
## Sub List 1
## Sub List 2
# Item 4
  1. Numeric list
  2. Item 2
  3. Item 3
    1. Sub List 1
    2. Sub List 2
  4. Item 4
* Bullet list
* Item 2
** Sub list 1
** Sub list 2
* Item 3
  • Bullet list
  • Item 2
    • Sub list 1
    • Sub list 2
  • Item 3

Table

Simple table can be built by separating each field with the pipe character (|). AnTreNotes and Desktop TreNotes automatically provides basic table borders for all tables. Put '_.' right after | to mark the cell as a table header.

|_. Size|_. Height (cm)|_. Weight (kg)|
|1|145-165|45-60|
|2|145-170|50-70|
|3|150-175|55-75|

will become this:

Size Height (cm) Weight (kg)
1 145-165 45-60
2 145-170 50-70
3 150-175 55-75

Web Link

Textile note HTML output
Search at "Google":http://www.google.com. Place the link's description in quotation marks and the URL link immediately by a colon. Note there is no space between the end quotation mark and the colon.

Search at Google. Place the link's description in quotation marks and the URL link immediately by a colon. Note there is no space between the end quotation mark and the colon.

 

Item Link

Textile note HTML output
This is an "item link":tnlink://3. Place the link's description in quotation marks and the URL link immediately by a colon. Note there is no space between the end quotation mark and the colon. The URL can be generated using the Insert Item Link toolbar button. __Do not modify the link generated__.
This is an item link. Place the link's description in quotation marks and the URL link immediately by a colon. Note there is no space between the end quotation mark and the colon. The URL can be generated using the Insert Item Link toolbar button. Do not modify the link generated.