Working with Structured Text

A cheat sheet for the different Structured Text formatting commands.

Basic text formatting

  • Paragraphs

    Let's say you have two blocks of text.

    Separate them with a blank line between the blocks.

  • Italicized text

    Enter this :

             *italics*
    

    to get this:

    italics

  • Underlined text

    Enter this :

             _underline_
    

    to get this:

    underline

  • Boldfaced text

    Enter this :

             **boldface**
    

    to get this:

    boldface

Headers and paragraphs

  • Text headers

    Enter this:

             My header
    
                If you enter a single line paragraph (e.g. like the one
             above and then indent the first line of the next paragraph, 
             the text in the one-line paragraph will be transformed into
             a header.
    
                Note that the second paragraph in the section also has 
             its first line indented.
    
                Be sure to leave a blank line between paragraphs.  This
             paragraph's first line is indented, too.
    
                Subheading 1
    
                   Use additional indentation to generate subheaders.
                Notice that the subheading's level of indenting is the
                same as the level for the previous paragraph, but that
                *this* paragraph is further indented.  It's the extra
                indenting of *this* paragraph that creates the subheading.
    
                   Subheading 2
    
                      Get smaller subheadings by indenting even more.
    
                      Subheading 3
    
                         Get even smaller subheadings by indenting even more.
    

    To get this:

    My header

    If you enter a single line paragraph (e.g. like the one above and then indent the first line of the next paragraph, the text in the one-line paragraph will be transformed into a header.

    Note that the second paragraph in the section also has its first line indented.

    Be sure to leave a blank line between paragraphs. This paragraph's first line is indented, too.

    Subheading 1

    Use additional indentation to generate subheaders. Notice that the subheading's level of indenting is the same as the level for the previous paragraph, but that this paragraph is further indented. It's the extra indenting of this paragraph that creates the subheading.

    Subheading 2

    Get smaller subheadings by indenting even more.

    Subheading 3

    Get even smaller subheadings by indenting even more.

Preformatted Text

  • Block of preformatted text

Enter this:

      The next block of text will be formatted exactly the way I have typed it::

         This is all preformatted.

            Your formatting will be used until...
               ... you stop indenting text.
            None of the *structured text* **commands** _work_ here.

         This is still indented.

      This is no longer preformatted.

To get this:

The next block of text will be formatted exactly the way I have typed it:

      This is all preformatted.

         Your formatting will be used until...
            ... you stop indenting text.
         None of the *structured text* **commands** _work_ here.

      This is still indented.

This is no longer preformatted.

  • 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.

Lists

  • Bulleted lists

    Enter this:

             * First item
    
             * Second item.  Note that there is a blank line between
             each list item.
    
                * Make lists within lists by using extra indentation
    
                * Second indented item.
    
             * Third item in the main list.
    

    to get this:

    • First item
    • Second item. Note that there is a blank line between each list item.
      • Make lists within lists by using extra indentation
      • Second indented item.
    • Third item in the main list.
  • Numbered lists

    Enter this:

             1 First item
    
             2 Second item.  Again, note that there is a blank line 
             between each list item.
    
             3 Third item in the main list.
    

    to get this:

  1. First item
  2. Second item. Again, note that there is a blank line between each list item.
  3. Third item in the main list.

Note that numbered lists cannot be embedded in bulleted lists.

  • Definition lists

    Enter this:

             First item -- More information about the first item.
    
             Second item -- More information about the second item.
    
             Third item -- More information about the third item.
    

    to get this:

    First item
    More information about the first item.
    Second item
    More information about the second item.
    Third item
    More information about the third item.

Links

  • Links

    Enter this:

             "A link to CNN":http://www.cnn.com
    

    to get this:

    A link to CNN

  • Email addresses

    Enter this:

             "address@example.com":mailto:address@example.com
    

    to get this:

    address@example.com

  • References

    Enter this:

             I am going to refer to a footnote here [1].
    
             Later in the text I will have a footnotes
             section.
    
             .. [1] My footnote.  The initial whitespace
             controls indentation, then the two periods
             followed by the space and the bracketed text
             create the anchor.
    

    to get this:

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

    Later in the text I will have a footnotes section.

    [1] My footnote. The initial whitespace controls indentation, then the two periods followed by the space and the bracketed text create the anchor.

Images

  • Images

    Enter this:

             "Text shown when the browser does not load the image":img:logo.jpg
    

    to get this:

    Text shown when the browser does not load the image

    You can use an arbitrary URL for the image, e.g.:

             "Plone logo":img:http://www.plone.org/logo.jpg
    

    Plone logo

Tables

  • Tables

Enter this:

      |------------------------------------|
      | Fruit     | Nut        | Mammal    |
      |====================================|
      | Apple     | Peanut     | Squirrel  |
      |------------------------------------|
      | Orange    | Macadamia  | Woodchuck |
      |------------------------------------|
      | Banana    | Walnut     | Dolphin   |
      |------------------------------------|
      | This spans 2 columns!  | Cat       |
      |------------------------------------|
      | Pear      | This spans 2 columns!  |
      |------------------------------------|
      | This spans 3 columns!              |
      |------------------------------------|

to get this:

Fruit

Nut

Mammal

Apple

Peanut

Squirrel

Orange

Macadamia

Woodchuck

Banana

Walnut

Dolphin

This spans 2 columns!

Cat

Pear

This spans 2 columns!

This spans 3 columns!

doc sprint review

Posted by JoAnna Springsteen at Feb 06, 2006 01:17 AM
Revise to get rid of floating headers (floating header is a header with equal space between the previous content and the content below it. There should be two spaces above the header and once space between the header and the content in the section below).

Doesn't work

Posted by Chris Crayton at Jan 24, 2008 12:30 AM
This would be great if only it worked in Plone 3. I've tried everything, talked with the admin of my plone site, and even he doesn't know what is wrong. Worked great in earlier versions of Plone. Flat out doesn't work in Plone 3.0. I wish this would have gotten caught in testing somehow... :(

Doesn't work

Posted by Patrick Harris at Jan 15, 2009 03:51 AM
Agree. Not that I'm complaining - that would be churlish given that this is community software. For those who use Plone for maintaining documentation though, it would be pretty helpful to have the "footnote anchor thingy" (hope that's not too technical for some of you) working again.

If something isn't working…

Posted by Alexander Limi at Jan 15, 2009 04:54 PM
…file bugs in the issue tracker: http://dev.plone.org/plone

Thanks!

Needs to be switched on for new sites

Posted by Alexander Limi at Jan 15, 2009 04:45 PM
In new Plone 3 sites, Structured Text needs to be switched on explicitly, using the "Markup" control panel. Your admin can do this.

It's even documented on the start page you get when you install Plone 3. :)

Needs to be switched on for new sites

Posted by Patrick Harris at Jan 16, 2009 02:22 AM
C'mon, nobody reads that stuff (I'm sorry, but that was a gimme).

No joy with the #ref footnotes stuff by the way, even after enabling strucutred text. You can do it using Kupu's anchor tool, but then you have to assign a style (and perhaps a footnote style is not a bad idea for Plone anyway) but [rattle thrown] I want my quick footnotes back. I shall log a ticket (currently dev.plone certificate issuer unrecognised) once I can log in.

Doesn't work

Posted by David Jagoe at Mar 12, 2009 08:54 AM
I ran into this problem too. The relevant tickets are these: 7989, 8363, 7989 and 7119 (e.g. http://dev.plone.org/plone/ticket/7989).

You (or your site admin) will need to go to "markup settings" and enable restructured text, and then you will also need to turn off Kupu (the visual page editor) in your personal preferences in favour of the plain old-fasioned text area. I'm not sure why this doesn't work in Kupu (perhaps was never meant to) but this change works.