Menu

#19 Option to make line number a hyperlink in file view

None
open
nobody
None
5
2013-01-03
2012-10-21
Lukasz M
No

I think it used to be like that, so you could click on a line number and a page would open up with the same file, but poinint you directly to interesting line. It is usefull when you want to send somebody line of code to look at.

Discussion

  • Andre-Littoz

    Andre-Littoz - 2012-10-21

    I removed the line number hyperlink some releases ago (because I could find no practical use to such a feature). That resulted in a smaller HTML stream for the file. For me, an idempotent hyperlink (i.e. pointing to itself) made no sense.

    If you want to send a reference, you only need to copy the URL from the browser navigation bar and add #line_number at the end. It should serve the same purpose.

    Unless you give me a convincing argument to revert to line hyperlinking, I propose to keep the present implementation for performance reason.

     
  • Lukasz M

    Lukasz M - 2012-10-22

    Having smaller HTML is a valid reason, that's why I asked for some kind of option in lxr.conf (or somewhere else?).
    I mainly found it useful when I wanted somebody to have a look at some specific line of code. I would click on a link and copy the address. Now I need to modify the link myself. It seemed a little bit more convenient.

     
  • Andre-Littoz

    Andre-Littoz - 2012-10-22

    To make it clearer, the "jump" or "destination URL" was removed from line number highlighting. However the "anchor" was kept on every line. This allows the direct navigation from the cross reference pages (ident or search) to the designated line.

     
  • Andre-Littoz

    Andre-Littoz - 2013-01-03
    • Milestone: v1.0_(example) --> Support needed
     
  • Andre-Littoz

    Andre-Littoz - 2013-01-03
    • milestone: Support needed -->
     

Log in to post a comment.