Skip to content

[Feature Request - Code Block] Tabs not as spaces #5586

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

Open
1 task done
BloodyIron opened this issue Apr 21, 2025 · 0 comments
Open
1 task done

[Feature Request - Code Block] Tabs not as spaces #5586

BloodyIron opened this issue Apr 21, 2025 · 0 comments

Comments

@BloodyIron
Copy link

Describe the feature you'd like

While there are times tabs as spaces in the Code Block makes sense, for me, there are also times tabs as actual tab "characters" in the Code Block makes more sense. For example, if I'm documenting config files that don't require tabs as spaces, but are more "administratively sensible" to be tabs as characters (not spaces).

So I was hoping we could get some sort of way to do tabs as tabs (character) in the Code Block, without also having the option to have tabs as spaces for where that makes sense.

Maybe some sort of toggle in the pop-up modal, I'm not sure on the best way to do this from a UX perspective.

If we could please get this, it would be appreciated. ❤️

Describe the benefits this would bring to existing BookStack users

I frequently find that when I need to have tabs as characters in code block entries I made (say for nginx config files, logrotation files, or more) I write it in an external editor (ie gedit) first, then copy-paste it into the Code Block to get this functionality, and that's kind of a PITA from a workflow perspective. Having the ability to sometimes do tabs as tabs/characters and sometimes do tabs as spaces, would work wonders for me IMO.

Can the goal of this request already be achieved via other means?

I have an annoying work-around I mentioned above, but within the Bookstack ecosystem alone, I'm not aware of a work-around.

Have you searched for an existing open/closed issue?

  • I have searched for existing issues and none cover my fundamental request

How long have you been using BookStack?

1 to 5 years

Additional context

Not a high priority feature, but would be appreciated. Love Bookstack!

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

No branches or pull requests

1 participant