pmem.github.io icon indicating copy to clipboard operation
pmem.github.io copied to clipboard

Add line numbering in code snippets by default

Open lukaszstolarczuk opened this issue 2 years ago • 0 comments

We could add line numbering for code snippets/highlighting as default param in hugo.

Right now, because of using syntax, e.g. like:

```c++

we lose line numbering. We can make it appear by using syntax like:

{{< highlight C "linenos=table" >}} {{< /highlight >}}

But then the code highlighting does not work well in IDE (at least in mine 😉 ).

ref. https://github.com/pmem/pmem.github.io/issues/270

lukaszstolarczuk avatar Jul 08 '22 08:07 lukaszstolarczuk