Is there any script (windows, linux or webapp service) that provide formatting ?
There's the tree command (exists in both Windows and unix/linux) which does it rather nicely. For example, here's a small portion of the dir structure for Python-2.7.3:
[me@home]$ tree Python-2.7.3 | head -n 11
│ ├── cgi
│ │ ├── cgi0.sh
│ │ ├── cgi1.py
│ │ ├── cgi2.py
│ │ ├── cgi3.py
│ │ ├── README
│ │ └── wiki.py
[me@home]$ tree Python-2.7.3 --charset ascii | head -n 11 # ASCII only
| |-- cgi
| | |-- cgi0.sh
| | |-- cgi1.py
| | |-- cgi2.py
| | |-- cgi3.py
| | |-- README
| | `-- wiki.py
This of course depends on you having access to the command and an existing directory structure.
A web app I'd like to see is one that takes unordered lists defined using HTML/markdown/textile/etc and spits out an ASCII tree. Better yet, a userscript that converts an in-post markdown list to a such a tree (indented as code). Any takers?
update: Just to get the ball rolling, here's my rather crude attempt at an interactive tree builder: http://jsfiddle.net/WjAk9/7/embedded/result/
I'm pretty sure others can do a lot better.
The gauntlet is thrown :)