• Resolved Cory Hughart

    (@cr0ybot)


    I’m glad that a setting to change the number of space characters was recently added, but I’d still prefer to use actual tab characters, which is in keeping with the WordPress coding standards and an accessibility feature. I currently have to copy & paste my code into the block in order to have actual tab characters, and editing the code within the block becomes a game of copy-pasting tab characters where I need them.

    I’d love to see an option for using tab characters instead of spaces. Even better if there was an optional front-end control for changing the tab width, which would be possible with a CSS var and the tab-size CSS property. I would also understand if this front-end tab size control was a premium plugin feature.

    This is a fantastic plugin, and I appreciate you efforts!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Kevin Batdorf

    (@kbat82)

    Hey Cory – I think I can do this. I’ll take a look this weekend and follow up.

    Plugin Author Kevin Batdorf

    (@kbat82)

    This should hopefully be working now in the latest release! Let me know if any issues with it.

    I was going to add a frontend button to let users toggle the width but at the last minute decided to hold on adding that. Each block has a scoped --cbp-tab-width property you can override though.

    If you want, I wrote a simple function to insert a button, toggle tab width, stash it in storage, and notify other blocks on the page. https://gist.github.com/KevinBatdorf/2f206319c8d7aafcd7487d29408453e3

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Support actual tab characters’ is closed to new replies.