Re: [viewvc-users] Highlighting a specific line in source view

"C. Michael Pilato" <[email protected]>
Newsgroups gmane.comp.version-control.cvs.viewcvs.user
Organization CollabNet, Inc.
Message-ID <4A2E6880.3020905__41587.2680292979$1244555405$gmane$org@collab.net>
Tasman wrote:
> Hello,
> 
> I'm playing around repo browsers and a have question if viewvc can
> highlight (and navigate to) a specific line of code. Say, I could paste
> into IM a url like
> "http://domain/viewvc/project/test.cpp?revision=1.0&gotoline=12", and the
> other guy could navigate directly to the line 12 I mean by clicking the
> link.

With the default templates, you can certainly link to specific lines in a
ViewVC markup file.  Here's an example:

   http://svn.collab.net/viewvc/svn/trunk/README?view=markup#l30

And I'm pretty sure that you could even tweak the templates and/or
stylesheet so that the line referenced in the link would be highlighted.
(Perhaps by populating some styles for the ":target" class?)

-- 
C. Michael Pilato <[email protected]>
CollabNet   <>   www.collab.net   <>   Distributed Development On Demand

------------------------------------------------------
http://viewvc.tigris.org/ds/viewMessage.do?dsForumId=4255&dsMessageId=2360637

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)

iEYEARECAAYFAkouaIAACgkQokEGqRcG/W67QgCglDgiLZoO2y+EnENH4fwOrNzP
8g4AoLwpNK5aV7kAUTH3Uu6Pn/WgKQeY
=YV+p
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.