Add named anchors for subroutine names or line numbers #70

Closed
clintongormley opened this Issue Jun 10, 2011 · 2 comments

Comments

Projects
None yet
3 participants
Member

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

Contributor

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: http://sartak.org/tmp/paste/2011-06-098de_AlyU

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.

Owner

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