react-textarea-code-editor icon indicating copy to clipboard operation
react-textarea-code-editor copied to clipboard

stop code wrap

Open jashwanth999 opened this issue 3 years ago • 6 comments

Is there any way to stop code wrap and make it horizontal scroll image

jashwanth999 avatar Apr 20 '22 17:04 jashwanth999

This can not be achieved, it can only be so simple. @jashwanth999 There are more complex options here:

https://github.com/jaywcjlove/react-monacoeditor https://github.com/uiwjs/react-codemirror

jaywcjlove avatar Apr 21 '22 01:04 jaywcjlove

@jaywcjlove I just wonder why something like overflow-wrap: normal does not work here?

vangelov avatar Sep 25 '23 07:09 vangelov

@vangelov This highlighting is implemented by overlapping pre and textarea. Maybe this is why overflow-wrap: normal doesn't work.

jaywcjlove avatar Sep 25 '23 09:09 jaywcjlove

Oh, I see. Thanks for the answer.

vangelov avatar Sep 25 '23 10:09 vangelov

so there's nothing to do?

mskafo avatar Oct 16 '23 22:10 mskafo