Line numbers in code blocks

Any way to do this? It’s handy to be able to refer to lines if you paste a large chunk of code.

What kind of code are you using? Shell scripts in bash, Python PyGMT, something in Julia?

For me, it’s usually bash.

Just in case; I’m thinking about line numbers in code blocks in the forum.