How to disable line-wrapping in code blocks?

I need an option to disable line wrap, similar to ‘readable line length’, instead of relying on a CSS hack. Currently, the code block is too difficult to read. Few websites on the internet cause the code block to wrap.