Skip to content
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

Add option to wrap lines in browser #2

Closed
ghost opened this issue Dec 16, 2019 · 1 comment
Closed

Add option to wrap lines in browser #2

ghost opened this issue Dec 16, 2019 · 1 comment
Assignees

Comments

@ghost
Copy link

ghost commented Dec 16, 2019

It's easier to view pastes with super long lines when viewing the raw paste right now.

https://brpaste.xyz/adCuBQ/raw vs https://brpaste.xyz/adCuBQ

@CosmicToast CosmicToast self-assigned this Dec 17, 2019
@CosmicToast
Copy link
Owner

Looks like all that's needed is this CSS rule:

pre[class*="language-"] code[class*="language-"] {
    white-space: pre-wrap;
}

just have to decide if it should be the default (I'm leaning yes, but give it a minute or two 🙂)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant