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 an option to line wrap text to fit in the viewport #40

Open
shazeline opened this issue May 12, 2017 · 1 comment
Open

Add an option to line wrap text to fit in the viewport #40

shazeline opened this issue May 12, 2017 · 1 comment

Comments

@shazeline
Copy link

For example, this is hard to read as-is, but would be much easier to read if it was line wrapped.

@chriskuehl
Copy link
Owner

This sounds like a good idea to me. I'm thinking maybe a checkbox or dropdown at the top to toggle it on/off?

One challenge in implementation might be getting the line numbers of the left to match up with the wrapped text. I'm not quite sure how to implement that off the top of my head, it might require some refactoring.

Just to provide a couple interim workarounds:

  • You can currently click "raw text" to have your browser format it (probably with line wrapping), though you of course lose some of the niceties like syntax highlighting.
  • If you're only pasting text (and not code), maybe you could use Markdown, e.g. https://i.fluffy.cc/00VHrtW3pc0FS4TDdzKlclkD4dQWBNLb.html

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

No branches or pull requests

2 participants