Personal tools
You are here: Home Web Add content Example of Structured Text code
Log in


Forgot your password?
 

Example of Structured Text code

If you want to fill a body text with structured text, it is quite simple.
If you write simply your text without any special character, you will obtain the same results as if you had chosen plain text.
Now if you want to use special formatting, you have to know which special characters to use.

Note that you can use some **html** code inside a structured text document, it works. So for example you can insert a complex table written in html and write the other simple paragraphs in structured text.

Remark::

All your line breaks and blank lines are understood by Structured Text.
The simple formatting works by default.

Paragraphs:

::

First Paragraph

Second Paragraph

will give:

First Paragraph

Second Paragraph

Headings:

Headings are based on indentation: a heading is a line of text followed by a blank line and an indentated paragraph::

First heading:

This is the indentated paragraph.

Second heading:

A new indentation.

Another paragraph.

will give:

First heading:

This is the indentated paragraph.

Second heading:

A new indentation.

Another paragraph.


Text formatting:

::

**bold text**
*Italic text*
_underline_

will give:

**bold text**
*Italic text*
_underline_

Lists:

Lists are quite simple to use. But do not forget the blank line between the items::

- First item

- one

- two

- Second item

1- First Item

2- second Item

First item -- More information about the first item.

Second item -- More information about the second item.

This will give:

- First item

- one

- two

- Second item

1- First Item

2- second Item

First item -- More information about the first item.

Second item -- More information about the second item.

Tables:

::

|------------------------------------|
| Header 1 | Header 2 |
|====================================|
| cell 1 | cell 2 |
|------------------------------------|
| span 2 columns |
|------------------------------------|

|------------------------------------|
| Header 1 | Header 2 |
|====================================|
| cell 1 | cell 2 |
|------------------------------------|
| span 2 columns |
|------------------------------------|

Links:

::

"Home":/
"ESRF":http://www.esrf.fr

will give:

"Home":/
"ESRF":http://www.esrf.fr


Images:

First create your image plone object, for example logo.jpg.
Then type::

"Logo":img:logo.jpg

to get:

"Logo":img:logo.jpg

Enhanced paragraphs:

::

Show this in a blue box::

Here is the text
which will be in the blue box

This will give:

Show this in a blue box::

Here is the text
which will be in the blue box

Inlined preformatted text

Enter this::

Some ordinary text here. Some 'preformatted text here'. More ordinary text.

to get this:

Some ordinary text here. Some 'preformatted text here'. More ordinary text.

References:

::

I am going to refer to a footnote here [1].

Later in the text I will have a footnotes section.

.. [1] My footnote.

This will give:

I am going to refer to a footnote here [1].

Later in the text I will have a footnotes section.

.. [1] My footnote.

Note that the footnote must be placed at the start of a line.


Example:

View "the structured text code of this page":StructCode.

Document Actions