Meta Stack Exchange is where users like you discuss bugs, features, and support issues that affect the software powering all 155 Stack Exchange communities.

What is meta?
Here's how it works:
  1. Any Stack Exchange user can ask a question
  2. The community provides support, votes on ideas, and reports bugs
  3. Your voice helps shape the way Stack Exchange operates

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

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 .