is that any way to add line number in code block just like github? I was using VS code with markdown preview extension. they use the below way to show/hide line number
Currently I don’t think there’s a way to do this with Joplin (it might be possible to do this using the userstyle.css, but I don’t know much about css). If your interested in implementing the feature I suspect it won’t be too complicated.
I tried using development tools to check the DOM in joplin, the HTML is like this in joplin :
<pre><code>
<span class='hljskey-word'>if</span> this is a keyword line
line 2
line 3
</code></pre>
I’m not very well on css, I didn’t found any way to add a line number before each line without any tag. if I add a tag manually on each line just like my previous post, I can show the line number very easy just using userstyle.css.