- Make sure the table's columns are separated by spaces — no tabs.
- Double check that there are no tabs.
- Make sure once more that there are no tabs.
- Make sure the table looks sane in a monowidth font (Courier or equivalent).
- Check that there are no tabs.
- Copy the table from the editor to the question or answer.
- Select the table.
- Press the
{}
button above the edit box to indent it as code.
- Use 2 spaces to separate columns; you can use 3 or 4 if the table will fit across the page, but not more.
- Avoid the horizontal scroll bar if at all possible.
Did I mention making sure there are no tabs in the data?
ID LinkID PC TotalNoOfOccurencesOfID
10R46 R*1005 8017 2
10R46 R*10335 5019 2
100R91 R*1005 8017 1
10R91 R*243 8870 1
10M95 R*4918 8305 3
10M95 R*9017 8305 3
10M95 R*9470 8221 3
December 2020 — Stack Overflow Markdown now supports tables
Stack Overflow's dialect of Markdown now supports tables.
That means the table in the question can be rendered like this:
ID |
LinkID |
PC |
TotalNoOfOccurencesOfID |
10R46 |
R*1005 |
8017 |
2 |
10R46 |
R*10335 |
5019 |
2 |
100R91 |
R*1005 |
8017 |
1 |
10R91 |
R*243 |
8870 |
1 |
10M95 |
R*4918 |
8305 |
3 |
10M95 |
R*9017 |
8305 |
3 |
10M95 |
R*9470 |
8221 |
3 |
The Markdown used for that table is:
| ID | LinkID | PC | TotalNoOfOccurencesOfID |
|:--------|:---------|:------|:-----------------------:|
| 10R46 | R*1005 | 8017 | 2 |
| 10R46 | R*10335 | 5019 | 2 |
| 100R91 | R*1005 | 8017 | 1 |
| 10R91 | R*243 | 8870 | 1 |
| 10M95 | R*4918 | 8305 | 3 |
| 10M95 | R*9017 | 8305 | 3 |
| 10M95 | R*9470 | 8221 | 3 |
It's still worth making sure there aren't tabs in the table, though.