Meta Stack Exchange is where users like you discuss bugs, features, and support issues that affect the software powering all 158 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

This question already has an answer here:

$obj = new Object();
print $obj->getThings();

Why not have the ability to linkify getThings() or Object() within the code block?

I realize this could be a pain to implement in Markdown, but maybe we can find a solution. Perhaps references at the end of the post like:


Where 1,11 is the position of the word that needs to be linkified, and 8 - the length of the word.

share|improve this question

marked as duplicate by animuson Aug 22 '15 at 21:48

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

What's wrong with linking them outside the code block? – animuson Jan 25 '13 at 17:56
There's nothing wrong, but having links inside the code might improve user experience – onetrickpony Jan 25 '13 at 17:56
Related – user7116 Jan 25 '13 at 18:06

You can actually already do this if you really wanted to, although not many people expect to find links inside the code.

$obj = new Object();
print $obj->getThings();

I don't see a Markdown equivalent being useful, though.

share|improve this answer
Whine whine syntax highlighting gone whine whine – Martijn Pieters Jan 25 '13 at 17:58
can you also post instructions on how to achieve this? – onetrickpony Jan 25 '13 at 18:00
@OneTrickPony:… – animuson Jan 25 '13 at 18:01
Ah nice, now I know who to blame if this starts to spread..... :) – Bart Jan 25 '13 at 18:04
I wouldn't use that, but I'd still like to have this feature – onetrickpony Jan 25 '13 at 18:07
You can blame @hammar. – user7116 Jan 25 '13 at 18:07

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