-
-
Notifications
You must be signed in to change notification settings - Fork 24
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
The code editor doesn't format numbers well #22
Comments
@kmartin62 I didn't understand what it meant. |
@jaywcjlove it means that when I type numbers, it increases their size and it doesn't look good. See the photo attached, I typed function (1) but the following output wasn't as it should be |
@kmartin62 Is there a style conflict? |
@jaywcjlove hm, seems so. What could be the issue on my side, any ideas? From what you showed me, looks like it works good on your side |
@kmartin62 https://codesandbox.io/embed/react-textarea-code-editor-for-example-mcebp?fontsize=14&hidenavigation=1&theme=dark You can create a debugging example. |
@jaywcjlove Never mind, I found the error. The style for the class |
Single numbers won't format well as it increases their size and it changes the color to red (I assume the color changing is part of the code editor so that's not a problem). I tried it with multiple languages and it doesn't work good for all of them. However, having the numbers next to a string, the problem doesn't occur.
![bug number](https://user-images.githubusercontent.com/26507591/130428982-992092ab-4713-4c41-9a30-a5342fd47b24.png)
The text was updated successfully, but these errors were encountered: