Meta Stack Exchange is where users like you discuss bugs, features, and support issues that affect the software powering all 157 Stack Exchange communities.

What is meta?
Here's how it works:
  1. Any Stack Exchange user can ask a question
  2. The community provides support, votes on ideas, and reports bugs
  3. Your voice helps shape the way Stack Exchange operates

This question already has an answer here:

I want to explain a mysql table structure and I used dt and dl.

But I could see other posts having a neat table display of their examples

How to code table like structure in Stack Overflow question textarea?

share|improve this question

migrated from Nov 26 '12 at 8:59

This question came from our site for pro webmasters.

marked as duplicate by Martijn Pieters, Shadow Wizard, Manishearth, ChrisF Apr 15 '13 at 8:15

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

up vote 4 down vote accepted

You can display data in table structure like this:

id | stationname | total
 1 | Khar        | 5
 2 | SantaCruz   | 3
 3 | Sion        | 2
 4 | VT          | 1
 5 | newFort     | 3
 6 | Bandra      | 2
 7 | Worli       | 1
 8 | Sanpada     | 3
 9 | Joe         | 2
10 | Sally       | 1
11 | Elphiston   | 2
12 | Currey Road | 1

Here you need to write your data in normal table structure (like writing it on notepad.). Then you just need to give them code sample appearance. (By Ctrl+K).

Note: You can use some external tools for that such as:

share|improve this answer
you mean with tabs and spaces in notepad or using tags of html? – Jayapal Chandran Nov 27 '12 at 5:52
i tried it works with tabs or even spaces... that is how i had created previously but as i have said i could see more formatted neat tables. – Jayapal Chandran Nov 27 '12 at 5:52
@JayapalChandran - Just click on edit button of this answer and see how the table is formatted. – hims056 Nov 27 '12 at 5:53

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