Flávio Etrusco wrote:
1) Logic should be separated from the presentation, so first there should be
'TAbstractSynEdit' class, concerning itself purely with text manipulations,
such as text insertion/deletion, cursor position changes, text
attribute calculation,
save/loading, codetools etc.
Martin Friebe schrieb:
My vision deviates a bit from this in the sense that TAbstractSynEdit
would just be an abstraction (or dedicated implementation) of a
cleaner text manipulation interface (as TStrings won't cut it), which
would also implement transparent/automatic/implicit 'undo'
Hans-Peter Diettrich wrote:
Martin Friebe schrieb:
Since TrailingSpaces is already a wrapper around the TextBuffer, it can
simply intercept those methods, and deal with them.
Such a wrapper IMO disallows to change the trim option at runtime. I'd
implement it only in the display code.