Sourceful icon indicating copy to clipboard operation
Sourceful copied to clipboard

How to disable word-wrap?

Open ahmedkamalio opened this issue 2 years ago • 2 comments

Is it possible to disable word-wrap and enable the horizontal scrollbar?

ahmedkamalio avatar Mar 26 '22 06:03 ahmedkamalio

This could be done on MacOS using native features. However doing it on iOS requires either a complete rewrite of the text renderer in Text Kit or a lot of very flimsy hacks. I don’t believe this highlighter contains any functions to do either of these ATM. But adding in the ability for disabling text wrapping on macOS should be fairly simple.

ActuallyTaylor avatar Mar 26 '22 12:03 ActuallyTaylor

@ahmedmkamal I was looking into this and as mentioned its a pretty big task. I then found https://github.com/simonbs/Runestone which has been implemented this way with a LOT of great features you’d need in any editor. Its a worthy consideration 👍🏻

shaps80 avatar Jul 17 '22 12:07 shaps80