Re: [viewvc-users] Line highlight based on URL input?
"C. Michael Pilato" <[email protected]>
| Newsgroups | gmane.comp.version-control.cvs.viewcvs.user |
|---|---|
| Organization | CollabNet, Inc. |
| Message-ID | <[email protected]> |
That kind of page-internal bookmarking is provided by the templates which drive ViewVC's output. Some sites might choose to expose functionality like that, some might not -- it all depends on how they compose their templates. The default templates which ship with ViewVC do provided ids for the bookmarks, though the syntax is #lNNN -- that's a lower-case 'L' followed by the line number[1]. But there's no CSS to make that line display as highlighted. I honestly don't recall the link-and-highlight behavior ever being part of stock ViewCVS/ViewVC. (But then, there are right many things I don't recall, so...) [1] http://svn.collab.net/viewvc/svn-cvs/subversion/libsvn_fs/key-gen.c?annotate=1.4#l20 Lawrence Cutlip-Mason wrote: > Version: 1.1.2 > > In older ViewCVS I thought you could do ?annotate=HEAD#250 at the end of the URL and it would highlight the line in the file when viewing. > > Example: > http://server.domain/ViewVC/viewvc.cgi/repository/module/src/bob/Test.java?annotate=HEAD#250 > > Would open the file in head and display line # 250 highlighted. > > I can't seem to find any docs on this anywhere and was wondering if it was removed or has changed... or maybe I just lost my mind and it was never really there. > > ------------------------------------------------------ > http://viewvc.tigris.org/ds/viewMessage.do?dsForumId=4255&dsMessageId=2432431 > > To unsubscribe from this discussion, e-mail: [[email protected]]. -- C. Michael Pilato <[email protected]> CollabNet <> www.collab.net <> Distributed Development On Demand ------------------------------------------------------ http://viewvc.tigris.org/ds/viewMessage.do?dsForumId=4255&dsMessageId=2432433 To unsubscribe from this discussion, e-mail: [[email protected]].
signature.asc
(application/pgp-signature, 197 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) iEYEARECAAYFAksxN24ACgkQokEGqRcG/W5mnACfdv/483SRI2llig9OPdgDquAF 78kAn2NOR2cjU2K7nUsWE3fgNXZb8mkk =bjwl -----END PGP SIGNATURE-----