I am experimenting with a custom markup that exists in code comments before, within, and following a code block that is the subject of discussion. I reuse markup attribute values to standardize categories.
Then, an app scans source for annotations and indexes them. I can then fuzzy search against the index using a range of words and get references.
If anyone likes this idea and would like to collaborate with it, and have the chops for doing so, contact me..