diff --git a/src/applications/paste/controller/view/PhabricatorPasteViewController.php b/src/applications/paste/controller/view/PhabricatorPasteViewController.php index 69ca9701ec..3ae8afbc6e 100644 --- a/src/applications/paste/controller/view/PhabricatorPasteViewController.php +++ b/src/applications/paste/controller/view/PhabricatorPasteViewController.php @@ -170,7 +170,15 @@ class PhabricatorPasteViewController extends PhabricatorPasteController { // And eventually this will highlight a line that you click // like diffusion does. Or maybe allow for line comments // like differential. Either way it will be better than it is now. - $rows[] = ''.$n.''. + $anchor = 'L'.$n; + $link = phutil_render_tag( + 'a', + array( + 'name' => $anchor, + 'href' => '#'.$anchor, + ), + $n); + $rows[] = ''.$link.''. ''.$line.''; ++$n; }