hakimel / reveal.js

The HTML Presentation Framework
https://revealjs.com
MIT License
67.95k stars 16.65k forks source link

Control of spaces & tabs for code examples #3707

Open danieldanielecki opened 2 weeks ago

danieldanielecki commented 2 weeks ago

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 commented 2 weeks ago

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 commented 2 weeks ago

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

Screenshot 2024-11-04 at 13 39 39