Skip to content
This repository has been archived by the owner on Nov 18, 2021. It is now read-only.

Allow highlighting of multiple lines and not just series of lines #453

Open
incertia opened this issue Aug 26, 2015 · 35 comments
Open

Allow highlighting of multiple lines and not just series of lines #453

incertia opened this issue Aug 26, 2015 · 35 comments
Labels
cross referencing Interlinking between issues, prs, commits, etc enhancement parity Features that GitHub is missing, but competitors implement; also, see [Migration] syntax-highlight

Comments

@incertia
Copy link

If I wanted to reference specifically lines 5, 11, 24-33, and 68, I currently can only do this with #L5-L68, which highlights all lines in that range. We should be able to add comma separated ranges (e.g. #L5,L11,L24-L33,L68).

@jamen
Copy link

jamen commented Oct 24, 2015

Example (edited 12/1/2016):

@munick

This comment has been minimized.

5 similar comments
@javjar

This comment has been minimized.

@bjadamson

This comment has been minimized.

@gmkohler

This comment has been minimized.

@vedz91

This comment has been minimized.

@andrii-kovalenko-ct

This comment has been minimized.

@bjadamson
Copy link

This was back from my days in corporate america, so maybe it'll resonate?

ping!!

@bam0382

This comment has been minimized.

@sholladay
Copy link

I needed this today to highlight an unnecessary function. It would have been very useful to be able to highlight its definition and its callsite. There is other code in between and selecting the whole range looks very confusing for the person I am trying to share the highlight with.

@designerdean

This comment has been minimized.

2 similar comments
@jaonoctus

This comment has been minimized.

@itmustbejj

This comment has been minimized.

@jamen
Copy link

jamen commented Apr 4, 2017

y'all would probably enjoy this issue too 😉

@karlsnyder0

This comment has been minimized.

@jenPlusPlus

This comment has been minimized.

1 similar comment
@sweeneyrobb

This comment has been minimized.

@FocuzJS

This comment has been minimized.

@ReikaKalseki
Copy link

I just found the need for this myself.

@shahnewazrifat
Copy link

Well? Anyone listening?

@yogeshmuthuraj
Copy link

Will there be a feature for this?

@TPS TPS added syntax-highlight cross referencing Interlinking between issues, prs, commits, etc labels Mar 12, 2019
@ravenpi
Copy link

ravenpi commented Apr 15, 2019

Agreed. I'm trying to write some documentation, and it would be terrific if I could highlight multiple individual lines (e.g., version numbers and build numbers) in a single file, and not have a bunch of separate links to the file.

@chrisblossom
Copy link

Any updates?

@ycjcl868

This comment has been minimized.

@NobleDraconian
Copy link

Heya, it's been about 2 years - any updates on this? I have a need for this as well.

@derek-smith
Copy link

Bitbucket has this and I use it all the time at work. You can highlight every place a specific variable is used, for instance. Super useful.

@TPS TPS added the parity Features that GitHub is missing, but competitors implement; also, see [Migration] label Feb 13, 2021
@akshaynagpal
Copy link

Any update on this?

@drkohlipk
Copy link

It's been over 5 years and this is a vital feature that nearly every other repo management service has, can we please implement this?

@Levi-Lesches
Copy link
Contributor

Reminder that this is not the official GitHub feedback forum, this is a community-run collection of issues.

To involve GitHub staff, open a discussion in the official GitHub repository.

@fathur
Copy link

fathur commented Jul 13, 2021

@Levi-Lesches Is there anyone post this issue on official Github repository? If exists, could you share it?

@TPS
Copy link
Collaborator

TPS commented Jul 13, 2021

I didn't see any myself @ the feedback repo, so you're welcome to open 1 up (but do link back here). 🙇🏾‍♂️

@xro
Copy link

xro commented Aug 11, 2021

GitHub c'mon!! How one can indicate parts of the code to the team mates when cannot select non consecutive lines? Maybe by sending multiple links with block of code selected????
I thought ability of browsing code is one of the most important with GitHub, isn't it?
Attlasian Stash has it since ages.

@incertia
Copy link
Author

It is probably worth opening an issue on the official Github tracker. I'm too lazy at the moment but if anyone wants to do it feel free.

@TPS
Copy link
Collaborator

TPS commented Aug 13, 2021

@incertia I think someone @xro 🙇🏾‍♂️ (from 2 comments before) already has.…

@ALL Please upvote & comment @ community/community#5022

@incertia
Copy link
Author

incertia commented Aug 15, 2021

@incertia I think someone @xro 🙇🏾‍♂️ (from 2 comments before) already has.…

Well there it is...

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
cross referencing Interlinking between issues, prs, commits, etc enhancement parity Features that GitHub is missing, but competitors implement; also, see [Migration] syntax-highlight
Projects
None yet
Development

No branches or pull requests