Block audit: Code #8331
Labels
[Block] Code
Affects the Code Block
[Feature] Blocks
Overall functionality of blocks
[Type] Task
Issues or PRs that have been broken down into an individual action to take
Note: We'll be doing these audits in waves and editing this as we work through the blocks, so this text will be updated and fleshed out as we progress. See the full picture here.
Overview
Name: Code
Description: Add text that respects your spacing and tabs -- perfect for displaying code.
Category: Formatting
CSS class:
wp-block-code
in frontend and editorCan be converted to: nothing
States
Empty:
Selected:
Unselected:
Placeholder:
Primary (toolbar) settings
None
Secondary (sidebar) settings
Advanced: Additional CSS Class
Frontend appearance
Gutenberg starter theme:
Atomic Blocks
twentyseventeen:
twentyten:
Bugs/errors
Individual issues will be opened for these soon
Suggestions
Individual issues will be opened for these soon
Nix the double-border. (Sometimes it's triple!)
I was sort of expecting to see a bit more styling here—syntax highlighting would be really nice. (Language Support or Formatting for <Code> block. #9336)
Being able to see invisibles (spaces, tabs) would make it easier for people to write actual code in here. (Code block should show invisible characters #11380)
Word wrap?
Maybe this should be convertible to preformatted?
6. I suspect this wouldn't work for accessibility reasons, but I suspect people (especially WordPress people) might want to be able to type tabs into the code box. (Code block should show invisible characters #11380)
The text was updated successfully, but these errors were encountered: