Feature the related anchor in github URLs with only one line?


(Allen - Watchman Monitoring) #1

Continuing the discussion from Support Wikipedia anchors in onebox:

Any chance we can get the same love for github anchors?

Continuing the discussion from Should any email subjects from discourse not be tagged?:


(Allen - Watchman Monitoring) #2

Oh interesting - it’s big block, centered on the correct line, there’s just no highlight, or line number, so it’s not clear what’s being pointed out.


(Dave McClure) #3

If you select a start and end point the one box will be limited to those lines:


Github onebox shows wrong lines
(Jeff Atwood) #4

This already exists as pointed out above.


(Allen - Watchman Monitoring) #5

Edit my post above to include a range- no change, but perhaps due to the fact it’s quoted?

Hm, no, amidoingthisright?

EDITED - doing it right now.


(Jeff Atwood) #6

Look more closely at the URL David posted, the right hand side.


(Allen - Watchman Monitoring) #7

Thanks for that.

Seems I can’t onebox just one line, but using a range like L1153-L1154 works to get the point across.

Having to use >1 line isn’t a problem, I just don’t know how a lay-person (end user posting in our forum) is going to know this exists.

I’ve updated this topic’s subject accordingly.


(Dave McClure) #8

I thought you could do 1 line like so:

Guess not. :-/