Skip to main content
Topic: Code block word wrap (Read 157 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Code block word wrap

Ok, working on a couple of sites, and ran into something.
When using the code blocks, there's the scroll bar at the bottom to slide left and right.
However, I'd like to have the block word wrapped, like in a few other sites I've worked with.
For one site, it would be a lot easier for people to check to see which code block has the right code for them to choose.

Thank you!


Re: Code block word wrap

Reply #1

The easiest way to accomplish that is to find and change the .bbc_code block in index.css file

In that specific CSS block you will find white-space: nowrap; and change that to white-space: pre-wrap;

That should give you what you are looking for.