How to disable word wrapping in plain text files in Chrome How to disable word wrapping in plain text files in Chrome google-chrome google-chrome

How to disable word wrapping in plain text files in Chrome


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.


I just loaded Syntaxtic extension and it works perfectly on my Windows 7. It unwraps the lines automatically whenever a text file is loaded!


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.