Highlighting Lines in Github

2012-10-22

Did you know that when you link to a file on Github, you can use the “fragment” (the part after the #) to link directly to a specific line, or even highlight a range of lines? For example, to show the code for Capistrano’s deploy:assets:precompile task:

https://github.com/capistrano/capistrano/blob/dbdf5a13ed2885610896563cbfd7df14e1c283c1/lib/capistrano/recipes/deploy/assets.rb#L31-43

blog comments powered by Disqus Prev: Histograms in Postgres with Window Functions Next: EVAL in Redis