No description
| example.txt | ||
| indent2treeview.hs | ||
| README.md | ||
| style.css | ||
indent2treeview
Generate an HTML tree view from an indented list.
Uses the <details> element and no JavaScript.
Usage: indent2treeview [<delimiter>] < input
Default delimiter is a single space.
add styling
With some magical CSS, we can get a visually pleasing result:
echo '<!doctype html>' $(./indent2treeview < myfile.txt) "<style>" $(<style.css) "</style>"
Example
A
B
C
D
E
F
G
I
H
J
becomes
A
- B
C
D
- E
- F
G
- I
- H
- J