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

Highlight errors inline #3

Open
cem2ran opened this issue Jan 3, 2016 · 0 comments
Open

Highlight errors inline #3

cem2ran opened this issue Jan 3, 2016 · 0 comments

Comments

@cem2ran
Copy link
Owner

cem2ran commented Jan 3, 2016

babel.transform() error messages contains the needed info.

try {
  babel.transform(code, {});
} catch ({loc}) {
   //loc contains the needed information.
}

Trivial to implement in CodeMirror:
editor.addLineClass( lineNumber, 'background', 'errorLine' )

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

No branches or pull requests

1 participant