2

I recently took another dive into Wordpress block themes by looking at the TwentyTwentyTwo theme. I'm noticing that all templating seems to take place either in PHP strings or HTML files chalked full of ugly HTML comments.

enter image description here enter image description here

I'm not seeing any tools out there for syntax highlighting and/or formatting for block themes.

Are WP block theme developers just developing themes in strings and html comments or am I missing something?

1
  • 2
    Are WP block theme developers just developing themes in strings and html comments or am I missing something? If you're writing strictly in code and not using the Graphical interface, than those HTML -like comments are attributes and supports and a fundamental part of the block editor and full-site editing themes. fullsiteediting.com/lessons/block-grammar-basics has a good background on the basics on them.
    – Will
    Commented Jun 8, 2022 at 20:38

1 Answer 1

2

It's missing some very new blocks (for example templates, template parts), but there is the autocompleter for block grammar.

Not the answer you're looking for? Browse other questions tagged or ask your own question.