Line numbers in code listings

Hi

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

With kind regards, Johan

2 Likes

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

What a pity. Good try though

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