Live data from Hacker News

Toc v2 – Generate a table of contents from the comments of a file

github.com

1–2 of 2 posts

Re: Toc v2 – Generate a table of contents from the comments of a file

#2
Hi all!

`toc` is a command line utility that generates the table of contents of a file from a special kind of comments.

Think it as a `tree` for the contents of a file, instead of a directory.

With version 2, I rewrote it in python for consistency and maintainability, and I added the possibility to embed the output in the original file