Line numbers in code listings


(Johan Dahl) #1

Hi

Would it be possible to turn on linenumbers on code between triple backticks in this forum?

With kind regards, Johan


(cosmos) #2

Maybe like this ?
https://shd101wyy.github.io/markdown-preview-enhanced/#/markdown-basics?id=line-numbers

Discourse uses markdown, but I think only a subset. Or an admin can customize it


function add(x, y) {
  return x + y
}

Doesn’t seems to work


(Johan Dahl) #3

What a pity. Good try though