最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

Tidy HTML formatting in Gutenberg HTML blocks

programmeradmin3浏览0评论

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.

发布评论

评论列表(0)

  1. 暂无评论