|
Comments. You might think that there are only so many things an editor can do. That's true.
But you owe it to yourself to examine the Scintilla API, which is very rich, with literally hundreds
of discrete operations in its repertoire.
Actually I only wrap a small portion of this. My API currently has basic capabilities for moving
around in the buffer by word, line, or character (addressed from the front or back); it has basic
insertion and deletion and text retrieval; and it has rudimentary support for handling text
selections.
I could have subclassed the existing class, but I didn't (mostly because I just wasn't in the
mood). However, I added a method_missing so that any unknown method will be passed into the
underlying layer, so the effect is much the same. If you know the name of an unwrapped method
that is not supported in the higher layer, you can call it anyway.
|