react-codemirror icon indicating copy to clipboard operation
react-codemirror copied to clipboard

Editing the codemirror with tab separator is not consistent

Open mimiiix opened this issue 6 years ago • 3 comments

When i write some texts with tab seperator the tab character length is not consistant, it is different each time you can see the issue here : capture d ecran 2018-03-08 a 11 44 46

Here is a screen shot of the result copied in sublime : capture d ecran 2018-03-08 a 11 45 15

mimiiix avatar Mar 08 '18 06:03 mimiiix

@mimiiix I'm not sure what the root cause of your issue may be at first glance, could be codemirror itself, but regardless I'd encourage you to check out react-codemirror2 as it's actively maintained.

scniro avatar Mar 12 '18 12:03 scniro

@mimiiix It's not a bug! This is exactly how \t functions. It doesn't equal to four or eight space. Please try it in any text editor.

microdou avatar Apr 03 '18 14:04 microdou

@mimiiix OK, I might have misunderstood your issue... Your issue seems like a font styling problem. You have to style your font as monospace, via either jsx or css.

microdou avatar Apr 03 '18 14:04 microdou