How to wrap text within a code block without overflowing it

prakasit khuansuwan m3JQf T9hU unsplash scaled Running A Blog
This article can be read in about 1 minutes.

To wrap the text in a code block to fit the screen width, enter the following in CSS.

.wp-block-code code {
white-space: pre-wrap;
overflow-wrap: anywhere;
}

Comment

Donate with Cryptocurrency!

Copied title and URL