ACENative / ACEView

Use the wonderful ACE editor in your Cocoa applications
Other
228 stars 41 forks source link

API to determine if content is non-conforming #50

Open tciuro opened 9 years ago

tciuro commented 9 years ago

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 commented 9 years ago

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

tciuro commented 9 years ago

@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 commented 9 years ago

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 commented 9 years ago

@tciuro did my explanation make more sense?

tciuro commented 9 years ago

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