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

Local Ace won't highlight right away #3526

Closed
davidgatti opened this issue Jan 23, 2018 · 2 comments
Closed

Local Ace won't highlight right away #3526

davidgatti opened this issue Jan 23, 2018 · 2 comments

Comments

@davidgatti
Copy link

I have the following situation. I added a new rule to highlight some simple keywords. When I was writing them down one by one, Ace was coloring the words correctly, as seen in the screenshot bellow...

screen shot 2018-01-23 at 10 38 01 am

And once I had everything, all was nice and blue. But once I saved my work, and restarted Ace, no highlights to be seen.

screen shot 2018-01-23 at 10 37 57 am

If I delete the regex and start adding regexp rule one by one again, Ace will start coloring the words again. Is this normal behaviour?

@nightwing
Copy link
Member

Are there any errors in browser console? Does highlighting start to work if you add a space at the end of the file (or do ctrl-a ctrl-c ctrl-v) instead of deleting the regexp.

By the way, is this question related to #3511?

@davidgatti
Copy link
Author

While writing you a reply I did find the problem, somehow I ended up having the same regexp rule twice. I think the live editor for development is a blessing and a cure at the same time. I think I ended up not hitting save again.

I think it be nice in the future to add the following to the editor

  • Have a banner showing the the changes can't be saved locally, and what to do to enable that.
  • Pop a message if the changes are not saved and you try to close the window.

I think this might minimize any confusion.

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