FUDiabetes

How to program a table in a forum post with Discourse

Instructions

To program a table, list column titles separated by vertical separators on one line, immediately followed by a formatting line with dashes ( you need both lines to start a table) as follows:

| Title 1 | Title 2 | Title 3 |
| - - - | - - - | - - - |
(Important: note that there should be NO spaces within the formatting line)
Then follow with each line of data, with separators preceding and following each column data:
| Data A | Data B | Data C |
If you want justification, use the formatting line as followed:
| : - - - | left justifies a column
| - - - : | right justifies a column
| : - - - : | center justifies a column
Columnar data may include emojis

Example

| Title 1 | Title 2 | Title 3 |
| : - - - | : - - - : | - - - : |
| Left justify | center justify | right justify |
| :white_check_mark: | :red_circle: | :+1: |

If you enter the example above, WITHOUT USING ANY SPACES IN THE FORMATTING LINE, you will obtain the following:

Title 1 Title 2 Title 3
Left justify center justify right justify
:white_check_mark: :red_circle: :+1:
4 Likes