Tuesday, September 17, 2013

Highlighting Lines of Code in Github

Ever needed to share some code with somebody and point them to the lines of interest?

Here's how to do that if the code is in github:

Summary

Just add
#L[STARTING_LINE_NO]-[ENDING_LINE_NO]
to the end of the original url.

Example


https://github.com/angular/angular.js/blob/master/test/ApiSpecs.js#L6-16

1 comment:

  1. Great Article… I love to read your articles because your writing style is too good, its is very very helpful for all of us and I never get bored while reading your article because, they are becomes a more and more interesting from the starting lines until the end.
    PEGA Training in Chennai

    ReplyDelete