What is meta? ×
Meta Stack Exchange is where users like you discuss bugs, features, and support issues that affect the software powering all 150 Stack Exchange communities.

When posting a code snippet on StackOverflow, there is a kind of syntax highlight which is cool. But, for some longer code snippets, wouldn't be way cool to have a kind of source x-ref (in the spirit of the report maven surefire produces) allowing one to have specific highlights in source code for element under cursor.

share|improve this question

1 Answer 1

It's generally discouraged to be posting long code snippets. Certainly code snippets long enough to make use of such a feature. I do like the idea, but the effort/return ratio just isn't there for use on SO.

You can always manually hack in something to get the point across. I.e., see (1) in my code below:

public void x()
    int a = 42;  // *** 1 ***
share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .