I need Chrome to display plain text files with long lines that should not be wrapped. But when Chrome displays a plain text file (text/plain) it wraps the lines around. How can I induce it to exhibit Firefox-like behavior (no wrapping, show scrollbars instead)?
I have tried to wrap the text into a element and it works but takes astonishing amount of time to load, even for relatively short text.
I've been looking at this too. The closest I've found is to use the command line and launch chrome but forcing to create a custom user style sheet.
Documented here : http://code.google.com/p/chromium/issues/detail?id=2393
You can then edit you local style sheet and update the css for pre tags (which is how chrome renders text/plain by default) to remove the "word-wrap: break-word" so the lines are not broken.
The easier solution for this is to right click and open "View Page Source". In this view the lines are not wrapped by default and "Line Wrap" is an option that can be toggled with a check box at the top of the page.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With