What is meta? ×
Meta Stack Exchange is where users like you discuss bugs, features, and support issues that affect the software powering all 149 Stack Exchange communities.
$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
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 meta.stackexchange.com/q/115022/162175 –  user7116 Jan 25 '13 at 18:06

1 Answer 1

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: meta.stackoverflow.com/revisions/… –  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

You must log in to answer this question.

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