However... when I do that it doesn't work properly with empty lines, because this seems to leverage \n inside of the <code> element, instead of adding something like <div class="line"> </div> or the like. (NOTE: The reason I suggest the here, is because if the div is simply empty, then user's can't really select and copy and paste the newline, TMK.)
I can almost add line numbers like this:
The result is SO CLOSE:
However... when I do that it doesn't work properly with empty lines, because this seems to leverage
\n
inside of the<code>
element, instead of adding something like<div class="line"> </div>
or the like. (NOTE: The reason I suggest the
here, is because if the div is simply empty, then user's can't really select and copy and paste the newline, TMK.)