Share Code from a GitHub Repo with a Permalink #1261
Closed
TextMisadventures
started this conversation in
Libraries and Code Samples
Replies: 1 comment
-
..and I see that it does not show the code in the mobile app. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
Let's say someone has asked a question in Discussions, and you want to share the
UpdateObjectLinks
function's code.I rarely want to search the documentation when I'm trying to find the actual code (
:)
), so I always begin my searches' text withNOT docs
.After scrolling a bit to find the code I wish to share, I click on the line number I want to start with. (You can't see my pointer, but you can see
296
is blue in WorldModel/WorldModel/Core/CoreScopes.aslx)Now, you should see something like this:
I want to share lines 296-314. Line 296 is already selected, so I shall hold SHIFT and click 314 to highlight the entire block of code (much like a normal text editor).
Now, I can just click the
...
thingy and select 'Copy permalink'When I paste that into my GitHub Discussions post:
quest/WorldModel/WorldModel/Core/CoreScopes.aslx
Lines 296 to 314 in 9e37029
Beta Was this translation helpful? Give feedback.
All reactions