Changing tab-size for highlighted code
Jekyll’s default highlighter Rouge do not allow change tab-size for code samples. The only way seems to be changing CSS this way
-
check
page/_site/assetsto see what CSS file is used by your current jekyll theme (in my case it ismain.css) -
create
main.scssfile inpage/assetsdirectory (the name of the file is derived from step 1, but instead of.csswe use.scssextension) -
the content of
main.scssshould looks this way
---
---
@import "minima";
pre {
tab-size: 3;
-moz-tab-size: 3;
}