Possible Duplicate:
Is there any markdown to create tables?
How to format SQL tables in a Stack Overflow post?

I was wondering how users are able to create beatiful tables of how their sql tables look like. See one below:


It is so neat and pretty.

  • 4
    Is that from an SO question? If so, just click edit and see the formatting used... ;P
    – yannis
    Apr 14, 2012 at 3:36
  • Geez why didn't I think of that? Sigh. Thanks! Apr 14, 2012 at 3:40

1 Answer 1


It's all just judicious use of spaces.

There's a nice tool to help format ASCII tables at sensefulsolutions.com.

  • Now that's what I'm talking about! thanks. Apr 14, 2012 at 4:16
  • But, @Jack, please take mobile users into account. (And maybe even screen readers, but I guess that's hopeless with any ASCII-like output.)
    – Arjan
    Apr 14, 2012 at 10:13

Not the answer you're looking for? Browse other questions tagged .