I wrote a very long answer to a question. This answer is divided into multiple sections. I would like to be able to link to individual sections rather than send people to the post to fish around for a particular section. In html, this is done by adding anchors to the page. This is not presently allowed at SO, and I would request that it be introduced as a feature: namely, that we can use anchors to create links to particular sections (lines) of questions and answers on Stack Overflow.
Relevant questions
Note this has come up twice before:
- Fragment Identifiers on Headings within Answers
- Is it possible to add html anchor in a StackOverflow answer?
Neither has an accepted answer. The previous iterations of the question had idiosyncratic features that got people sidetracked. E.g., one answer suggested to just reorder the content, putting the most important stuff first, as if that would solve the problem. For a long, logically ordered, answer, this suggestion would not work.
Another person suggested to break up an answer into multiple answers, each of which already has its own link on SO. There are all sorts of problems with this. Different answers are meant to be different answers, not serve as paragraph breaks: especially if the order of the parts is important, breaking things up into different answers would not make sense as we have no control over their order. That is controlled by votes.
One answer said that only only one bookmark hash is allowed per url, and insinuated that this is a fatal problem with the suggestion. This seems something that would be trivial to overcome: just allow different names for different anchors within a question or answer. What is so fatal about that?
In general, it seems strange that SO posts seem to not have a natural way to link to particular places in questions and answers. It's like taking one of the cool features of the internet, and killing it. Why? This seems a natural and useful feature for longer questions and answers.
Note we explicitly discussed whether to ask this question here. A second post says that in such a case it is best to simply ask a new question when the original doesn't have a satisfactory answer.