# How to program a table in a forum post with Discourse

**URL:** https://forum.fudiabetes.org/t/how-to-program-a-table-in-a-forum-post-with-discourse/5025
**Category:** Howto
**Created:** [September 18, 2018, 11:26pm UTC](https://forum.fudiabetes.org/t/how-to-program-a-table-in-a-forum-post-with-discourse/5025 "2018-09-18T23:26:03Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Michel](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.fudiabetes.org/michel/32/387_2.png) [@Michel](https://forum.fudiabetes.org/u/Michel)
#### Post date: [September 18, 2018, 11:26pm UTC](https://forum.fudiabetes.org/t/how-to-program-a-table-in-a-forum-post-with-discourse/5025/1 "2018-09-18T23:26:03Z")

</div>

**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 |  
> | ✅ | 🔴 | 👍 |

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 |
| ✅ | 🔴 | 👍 |
