-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enable Line Break #1237
Comments
You can use the Normalize-Whitespace plugin to break lines that are wider than a certain number of characters: http://prismjs.com/plugins/normalize-whitespace/ |
@benjaminBrownlee Or you could also set |
What if I want line breaks with indents? |
Unfortunately, CSS doesn't give us any easy tools to realize indented line wraps so we'd have to implement that ourselves which won't be easy. So there's no easy solution right now. If you want to request this feature, please open a new issue. |
What about PS yes line wraps won't be indented this way but it's still much better than having a horizontal scroll on small viewports because there's e.g. a long comment line somewhere. Seems like a reasonable default behavior that's cheap to implement. |
I personally hate horizontal scroll bars. I have read through many of the plugins and documentation but can't find a way to line-break in a manner that eliminates this. I can change the overflow property, but that compromises readability. Is there a way to add line-break?
The text was updated successfully, but these errors were encountered: