react-codemirror
react-codemirror copied to clipboard
Editing the codemirror with tab separator is not consistent
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 :
Here is a screen shot of the result copied in sublime :
@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.
@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.
@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
.