Join the DZone community and get the full member experience.Join For Free
This is my week end project: a table of contents generator. Well, technically, it’s more like a two hour project interrupted four times over the course of a Saturday but I guess it still qualifies as a week end project.
Ideas for potential improvements:
- Make the numbering optional or configurable.
- Have the script add CSS classes to the sections for easier styling (“section1″, “section2″, etc…), since the indenting is pretty crude right now.
Opinions expressed by DZone contributors are their own.