How to wrap long code lines in google-code-prettify


I’m using default setting of google-code-prettify. When a line is too long, it exceeds the boundary, like the following: enter image description here Are they any possible solution to wrap the code line?


You can use the CSS property word-wrap: break-word; to enable word-wrapping. Make sure that your selector has priority over Google’s style, as they probably set word-wrap: nowrap; somewhere.

Answered By – tvkanters

Answer Checked By – Candace Johnson (AngularFixing Volunteer)

Leave a Reply

Your email address will not be published.