wermos / blog

Home of my own blog.
https://wermos.github.io/blog/
0 stars 1 forks source link

(Optional) Line numbers for code snippets. #1

Closed wermos closed 2 years ago

wermos commented 2 years ago

Figure out how to get optional line numbers from PrismJS. We might need to fork an existing Jekyll plugin and make a few modifications to get the desired result.

wermos commented 2 years ago

Mostly done in c5b9ae258d0b29d2d43669ae911cb41cf37a5cc8.

I changed the code highlighter from PrismJS to highlight.js because the latter is much more popular (it is used by the likes of Stack Overflow). Then, I added the highlight-js-line-numbers plugin and modified the CSS to be closer to how I want it to be.