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/assets
to see what CSS file is used by your current jekyll theme (in my case it ismain.css
) -
create
main.scss
file inpage/assets
directory (the name of the file is derived from step 1, but instead of.css
we use.scss
extension) -
the content of
main.scss
should looks this way
---
---
@import "minima";
pre {
tab-size: 3;
-moz-tab-size: 3;
}