admin管理员组

文章数量:1315241

When forming my own HTML within Gutenberg HTML blocks, trying to keep my HTML tidy for easy debugging purposes is a pain because tab indenting cannot be used, and therefore multiples of 4 spaces or more has to be used for each indentation level. Having to count 1,2,3,4...1,2,3,4...1,2,3,4 for example to keep everything in line slows down page production too.

Is there a way of allowing tab indenting to be used within Gutenberg blocks?

When forming my own HTML within Gutenberg HTML blocks, trying to keep my HTML tidy for easy debugging purposes is a pain because tab indenting cannot be used, and therefore multiples of 4 spaces or more has to be used for each indentation level. Having to count 1,2,3,4...1,2,3,4...1,2,3,4 for example to keep everything in line slows down page production too.

Is there a way of allowing tab indenting to be used within Gutenberg blocks?

Share Improve this question edited Nov 19, 2020 at 16:03 Chris Rogers asked Nov 19, 2020 at 10:27 Chris RogersChris Rogers 12310 bronze badges 2
  • specifically for the HTML block; or the HTML that is in the code editor? – Will Commented Nov 19, 2020 at 15:59
  • @Will I want to be able to tab indent HTML within HTML blocks. I just edited my question in the hope of making it more clear – Chris Rogers Commented Nov 19, 2020 at 16:02
Add a comment  | 

1 Answer 1

Reset to default 0

Unfortunately, I don't believe there's anything available that would allow this unless you do some extensive customization to the block editor.

TAB is used very often by users who have limited dexterity (I use it myself) so entering TAB on the keyboard will be used to move to the next element on the page.

本文标签: Tidy HTML formatting in Gutenberg HTML blocks