Option to wrap text
-
Currently:
.wp-block-kevinbatdorf-code-block-pro:not(.code-block-pro-editor) pre,
.wp-block-kevinbatdorf-code-block-pro:not(.code-block-pro-editor) pre code {
white-space:pre!important;
}It does not reflect the experience in the block editor, where it is a textarea.
The presence of!important
is bad practice and makes things difficult.I do understand the rationale behind the implementation, both from a UX/editing point of view, and because of the technical challenges for wide theme support.
However, in terms of design and output, wrapping text is a missing feature for long lines.Examples use case that would benefit from such an option:
- WordPress Shortcode with many arguments
- WordPress block markup
- Nested HTML markup
- Not-so-long lines displayed on mobile phone screens
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- You must be logged in to reply to this topic.