-
Notifications
You must be signed in to change notification settings - Fork 50
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
Feature request: Word-wrap text #8
Comments
Hi @jscappini, |
Hi @PDDStudio |
Thanks @jscappini ! |
@PDDStudio you could achieve that without breaking the line number with style: td.hljs-ln-code {
word-wrap: break-word;
word-break: break-all;
white-space: pre-wrap;
} |
@k0shk0sh thanks for pointing out! |
Np mate, I changed to highlight.js in 3.0.0 for FastHub and realized that wrapping Sent from my Htc m8 using FastHub |
Is this applied? How to use it now? |
pre {
white-space: pre-wrap;
} Just add these lines to your CSS file and it will work fine. |
Hi!
I'm currently displaying a HighlightJsView inside a tabbed pane, and facing an issue of undesired interaction while side-scrolling long text: Swiping just go to the next tab. In spite of this, I would like to control how long text is displayed, being it word-wrapped or not.
Reading the WebView documentation, I found that I can control this behavior setting the LayoutAlgorithm flag to TEXT_AUTOSIZING, but applying that setting just change nothing in the final result. Intercepting the resulting HTML and then manually adding the
word-wrap
andwhite-space
styles to the<pre>
tag, I got what I want. My question is, can this be controlled with a setting or configuration flag of HighlightJsView?Thanx!
The text was updated successfully, but these errors were encountered: