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

API to determine if content is non-conforming #50

Open
tciuro opened this issue Oct 26, 2015 · 5 comments
Open

API to determine if content is non-conforming #50

tciuro opened this issue Oct 26, 2015 · 5 comments

Comments

@tciuro
Copy link

tciuro commented Oct 26, 2015

Hello,

I haven't seen an ACEView/ACEViewDelegate API to determine if the content of the view are not conforming to the specified language. For example, if I set the ACEView mode to be ACEModeJSON and I edit the contents removing a comma, a red "X" appears in the gutter (awesome!). I'd love to programmatically figure out if the view is showing one or more "X"'s so that I can redraw the rest of the UI accordingly. Did I overlook this API somewhere? Thanks!

@faceleg
Copy link
Collaborator

faceleg commented Oct 26, 2015

Is there a way to determine this with the ACE editor?

@tciuro
Copy link
Author

tciuro commented Oct 29, 2015

@faceleg I don't understand your question. What do you mean with "ACE editor"? I've checked the public APIs and I don't see how I could gain access.

@faceleg
Copy link
Collaborator

faceleg commented Oct 29, 2015

I mean the ACE HTML editor itself - https://ace.c9.io/ ACEView is a magical wrapper around that :)

Anything that the ACE editor does, we will be able to make the ACEView do, it's a matter of adding the appropriate wrapper functionality

@faceleg
Copy link
Collaborator

faceleg commented Oct 30, 2015

@tciuro did my explanation make more sense?

@tciuro
Copy link
Author

tciuro commented Oct 30, 2015

Yes, thank you. I posted a question in the forum hoping to figure out whether it's possible.

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

2 participants