namuol / cod

unassuming documentation format for any language

Home Page:http://namuol.github.io/cod

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Option to track file+line-number metadata

rolandpoulter opened this issue · comments

It would be nice if the tags remembered what index they started and ended in the source. Then it would be easy to show the source code of tags.

I didn't realize that this creates a single object for the whole file.

Maybe if there was a way to tell it to return the current line/index of a file or something.

/**
  @$start
  @$end
*/

Could return:
{start: 0, end: 20}

Yeah this is probably a feature that many people will eventually want.

If cod supports file+line-numbers at all, it should be done transparently with a parameter, or maybe through some kind of plugin system.