[Lazarus] Auto indentation
Hans-Peter Diettrich
DrDiettrich1 at aol.com
Fri Nov 6 03:30:55 CET 2009
Mattias Gaertner schrieb:
> With the new synedit OnPaste event I will try to fix the indent on
> paste.
IMO you should rethink the handling of insertion/deletion. A single
Replace(start, delta, text) method can handle every case, with positive
deltas meaning insertion and negative deltas meaning deletion or
substitution of text. This single method knows about the range of the
affected text, as required for the handling of all related attributes
(line count, cursor position, syntax highlighting, blocks, folding,
formatting, bookmarks...). All related objects should implement the same
method for dealing with updates.
DoDi
More information about the Lazarus
mailing list