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

AI-generated summary

The discussion is about featuring related anchors in GitHub URLs with only one line. watchmanmonitor requested this feature, similar to the existing support for Wikipedia anchors. codinghorror pointed out that this feature already exists, but watchmanmonitor was unable to get it to work with a single line. After further investigation, watchmanmonitor discovered that using a range of lines (e.g., L1153-L1154) works, but is unsure how to make this clear to end users. mcwumbly suggested trying to use a range of a single line (e.g., L4-L4), but this does not work.

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?:

1개의 좋아요

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.

1개의 좋아요

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

2개의 좋아요

This already exists as pointed out above.

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.

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

1개의 좋아요

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.

I thought you could do 1 line like so:

Guess not. :-/

2개의 좋아요