What is meta? ×
Meta Stack Exchange is where users like you discuss bugs, features, and support issues that affect the software powering all 127 Stack Exchange communities.

Hello,
Can someone tell me how this post was formatted?
dictionaryt-of-listt-and-listviews-in-asp-net

I know how to do this in a text editor, but when i cant figure out how it is done on the StackOverflow question form. It works here if i format it as code, but not on StackOverflow.

------------------------------------------------------------------
|           Name Of Item          |  DropDownList (of List<T>)   |
|---------------------------------|  _____________________       |
|                foo1             |  |     bar1      | v |       |
|                                 |  |_______________|___|       |
------------------------------------------------------------------
|                                 |  DropDownList (of List<T>)   |
|                                 |  _____________________       |
|                foo2             |  |     bar2      | v |       |
|                                 |  |_______________|___|       |
------------------------------------------------------------------

Interesting presentation to explain your point.

share|improve this question
    
Looks like you didn't have any trouble replicating. –  random Aug 18 '09 at 6:19
add comment

4 Answers

up vote 6 down vote accepted

The author of that question just put his "drawing" in <pre> tags. But code formatting (i.e. 4-space-indent) should work, too---on SO as well.

But since that would leave you with syntax-highlighted drawings, it might not be desirable anyway...

share|improve this answer
add comment

Ah, I'm suddenly reminded of the DOS (and before) days of looking for the right border glyphs for the single/double border lines... sadly they don't seem to translate to most common modern type faces, but them were the days ;-p

share|improve this answer
    
Yay! My first attempt at writing a drawing program was text mode and used those lines. Good ol' COMAL days... Thanks Marc, now you've got me thinking of better times for the rest of the day... –  balpha Aug 19 '09 at 10:37
add comment

Quite possibly using an ascii art generator, such as asciio.

I downloaded it from the Fedora repositories, and when I create a diagram in it and then right click on the background, I can save the diagram to a text file. From there I just need to copy the text, and paste into a <pre> block.

share|improve this answer
1  
The problem is how to get it to display on StackOverflow, not how to generate the text. –  Slabo Aug 18 '09 at 5:52
    
That was not created with asciio, the corners are different. –  Brad Gilbert Aug 18 '09 at 15:08
add comment

The question in the link that you posted has been edited at least once.

You can click the "Edited X hours ago" link. This will bring up an interface containing the revision history. Find the appropriate version and click the "view source" link. This way you can see exactly what the author typed when he asked the question.

This method is useful whenever you see some kind of of formatting that you'd wish to know how the author achieved.

If the post has not been edited, you can use this method to access the revision history.

share|improve this answer
add comment

You must log in to answer this question.

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