|
||||
| << | >> |
Comments. Here's a sample of the editor API, the go method, which moves the insertion
point around in the buffer.
Constants such as Scintilla addresses strictly by character offset. I've added to this so that you can address by line or by line/column if you wish. In addition, I handle negative offsets in a Ruby-like fashion (i.e., as the String and Array classes work, where negative indices are one-based and count backwards from the end). I've tentatively decided that lines should be one-based rather than zero-based. We expect the first line of a file to be line 1, not line 0. Those who disagree should give feedback.
In the spirit of flexibility, there are also other methods such as
Note that when the method takes a Symbol constant and an integer, it may take them in either order;
thus you may say |