Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Control of spaces & tabs for code examples #3707

Open
danieldanielecki opened this issue Nov 4, 2024 · 3 comments
Open

Control of spaces & tabs for code examples #3707

danieldanielecki opened this issue Nov 4, 2024 · 3 comments

Comments

@danieldanielecki
Copy link

I really can't find this information anywhere, but is there any way to control spaces & tabs, and its settings for the source code slides?

@danieldanielecki
Copy link
Author

PS. By default it creates 4 spaces, ideally, I'd limit it to 2, or 1 tab with 2 spaces length.

Screenshot 2024-11-04 at 13 38 46

@danieldanielecki
Copy link
Author

and the slide source code, despite the fact it's there 2 spaces, it ignores it.

Screenshot 2024-11-04 at 13 39 39

@Martinomagnifico
Copy link
Collaborator

Martinomagnifico commented Dec 18, 2024

You can use tabs and then a bit of CSS:

code.hljs {
  tab-size: 2;
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants