Skip to content

How do I add indentation to code blocks? #4693

Answered by Calab
Calab asked this question in Q&A
Discussion options

You must be logged in to vote

Spaces and tabs are both ignored. I ended up using ALT-255 to enter some blank non-space characters.

It looks like something I did with the CSS...

code{ white-space: nowrap !important; }

...is hiding the leading spaces in my code blocks. Changing from nowrap to pre seems to have fixed the spacing issue.

Thanks for letting me know that leading spaces should have been working.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Calab
Comment options

Answer selected by Calab
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants