Snippets/quotes from GitHub?

Quite often is showed quote or snippet from GitHub that shows a line or point where is an issue or something is happening.

So, the real 101-level question is: how is it done?

Easy as 1, 2, 3 (when you know where to click):

and that gives you a permalink to that line:

https://github.com/discourse/discourse/blob/3ccb54ba227991c4ff92e49e6be242cd712ef0f9/config/environments/production.rb#L3

which renders as

2 Likes

Nice :+1:

I was almost there. But I tried copy block of lines, and it didn’t totally work, and then permalink gave just ordinary onebox. And then I was panicking because there was some blaiming and I’m so easy going guy I don’t want blaime anybody :joy:

Thanks!

1 Like