The comments from 2007 (http://www.sublimetext.com/blog/articles/anatomy-of-a-next-g...) have a pointer to this:
http://bigasterisk.com/projects/skim
which may give someone a starting point.
http://bigasterisk.com/projects/skim
which may give someone a starting point.
Here's a blog post with details, links, and a screenshot:
http://michael-mccracken.net/2009/09/textshapeview/
The code is hosted at http://leverage.sourceforge.net/ , where there are a few other text system hacks that I did a few years ago - one of my favorites showed a hierarchical outline view next to any text view that would show the nesting of any kind of simple syntax, and let you move the selection around by selecting in the outline. It is unfinished but still pretty useful.