I would like to generate a code visualization that displays
- full source code file
- with arrows connecting lines
- Syntax highlighting (initially PHP, but extensible)
To clarify, I have an analysis that already computes a relationship between some of the lines of code. My need is to display this.
Is there already a tool or framework that allows me to do this?
Edit: This is what this would look like.

f()and theffunction. All the other arrows seem to point random stuff.generateHTML(String code, String language, Map<Integer,Integer> edges)wherelanguageis for syntax highlighting andedgesis a map of edges (line number to line number).