Add named anchors for subroutine names or line numbers #70

clintongormley opened this Issue Jun 10, 2011 · 2 comments


None yet
3 participants

clintongormley commented Jun 10, 2011

When displaying the module source, it would be good to have each subroutine name include a named anchor, eg <span id="sub_foobar">sub foobar</span> to make it possible to link to that sub-routine using #sub_foobar

Similarly, #line_20 for line numbers


sartak commented Jun 10, 2011

I attempted to add links to line numbers in the module source view (with the eventual goal of how github does it) with this code:

Unfortunately it did not work because the <pre> containing the module's source is upgraded to include line numbers and whatnot fairly late in the page rendering process, after the browser processes anchor(fragment) part of the URL.


ranguard commented Dec 19, 2013

I think this is fixed with #70

@ranguard ranguard closed this Dec 19, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment