If I did:
{% highlight C %}
.... code
{% endhighlight %}
For any tab I use between the highlighted C, I'd like the tab size to be 2 rather than 4. Doing {% highlight C tabsize=2 %}
doesn't seem to work in Jekyll 3.
The answers I have seen on SO seem to work for older versions, but not recent versions.
I don't believe it's possible from Jekyll itself, but you can accomplish this with CSS using the tab-size
attribute:
pre {
tab-size: 2;
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With