Skip to content
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

Add line numeration to the validators. #37

Open
BlitzOffline opened this issue Sep 9, 2022 · 1 comment
Open

Add line numeration to the validators. #37

BlitzOffline opened this issue Sep 9, 2022 · 1 comment

Comments

@BlitzOffline
Copy link
Member

So when I have an invalid file and I put it thru one of the validators I get an error similar to this:

Parsing error on line 22, column 55: Expected "=", [ \t] or [A-Za-z0-9_-] but "." found.

The problem is then I have to go and find out which is the 22nd line and since they're not marked in the toolbox, I either have to open a new page in a text editor that does have line numeration and paste it there so I can see it or I have to count the lines myself. It would be nice if there would be a line numeration directly embedded in the page. Something like this:

image

@Starmism
Copy link
Member

Starmism commented Apr 2, 2023

So this is quite hard to do as the current implementation uses a library called react-simple-code-editor, which, as the name implies, is quite simple and lacks a line number implementation. We'd need to swap to a new code editor library to add this. One I've seen suggested a lot is CodeMirror, but I'm not super familiar with the ecosystem in this area.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants