It appears to me that there may be different syntax for the the url lines ending, maybe according to different Bitbucket version...
@VonC Answer is good - I think it worked for me before, but apparently it does not for me anymore, and I'm guessing different BitBucket version may make the difference..
Whatever the reason for the difference, if @VonC Answer does not work for you, try this (emphasis on #7-8
):
bitbucket.your.domain/.../your/project/structure/.../yourfile.filetype#7-8
The UI rendering of that is a bit different from @VonC linked example - just blue highlighting of line-number gutter (instead of yellow highlighting of code):
That rendering looks looks identical to that from @VonC for [non-contiguous] multiline selection - and in my Bitbucket version, non-contiguous selection with CMD + click similarly works (as below - emphasis on ,10,12
)
bitbucket.your.domain/.../your/project/structure/.../yourfile.filetype#7-8,10,12