1

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.

This is what this would look like.

5
  • Can you produce a sketch/prototype of what you want? This could help to provide you the right type of answer. Commented Oct 25, 2016 at 9:10
  • Updated with the example. Commented Oct 25, 2016 at 13:53
  • TBH your example doesn't make much sense to me. The only relationship I may see in there is between f() and the f function. All the other arrows seem to point random stuff. Commented Nov 1, 2016 at 17:25
  • That's OK. It will make perfect sense in context. And I have an analysis to generate the edges. What I need is a way to visualize all that. In a perfect world, it would be some API generateHTML(String code, String language, Map<Integer,Integer> edges) where language is for syntax highlighting and edges is a map of edges (line number to line number). Commented Nov 1, 2016 at 18:45
  • Helpful: stackoverflow.com/questions/27857/c-c-source-code-visualization Commented Jan 12, 2017 at 12:45

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.