Posting code with the line numbers displayed

Hi Everyone,
I hope this isn’t too stupid a question, I’ve searched and haven’t seen the answer here so I thought I’d ask:
How does one post one’s code from a text editor into the forum here with the line numbers displayed in the post?
Thanks in advance!
(Apologies and please delete if this is in the wrong place)
:slight_smile:

Hello,

As far as I know, there isn’t a built-in method to show the line numbers too. However, you could post the link generated from clicking Share Code from within the learning environment (assuming you have Pro)
image

That GitHub Gist link will still have the line numbers and we can easily work with them in the forums

thanks ! I’m sure that will come in useful when I’m back in the exercises.

right now I’m using VS Code as my editor and firefox developer edition for the local host .

cheers :slight_smile:

This topic was automatically closed 41 days after the last reply. New replies are no longer allowed.