CSS line numbers


A lightweight example of how to use counter-reset and counter-increment to display line numbers alongside blocks of code, without needing JavaScript. Useful for styling code snippets in documentation or blogs.

Take a look here: https://codepen.io/triss90/pen/bZaQYJ