1
0
mirror of https://github.com/tiimgreen/github-cheat-sheet.git synced 2025-08-12 10:53:58 +02:00

Update Line Highlighting

This commit is contained in:
Tim Green
2014-04-13 17:02:06 +01:00
parent 5d91777b67
commit a6d33515c2

View File

@@ -234,9 +234,9 @@ which allows you to see the difference on the master branch up a set time ago or
## Line Highlighting in Repos ## Line Highlighting in Repos
Adding `#L52` to the end of a code file URL will highlight that line number. Either adding `#L52` to the end of a code file URL or simply clicking the lin number will highlight that line number.
It also works with ranges, e.g. `#L53-L60`: It also works with ranges, e.g. `#L53-L60`, to select ranges, hold `shift` and click two lines:
``` ```
https://github.com/rails/rails/blob/master/activemodel/lib/active_model.rb#L53-L60 https://github.com/rails/rails/blob/master/activemodel/lib/active_model.rb#L53-L60