Closed xconnect closed 10 years ago
Implementation done.
Branch: NewEditor
The Highlighter is not imported from anywhere. We want to tell the highlighter to start working on certain conditions, so we would need to call it from the KeyHandler and possibly from UndoRedo. Also from Editor.hs when loading a new file. Am I missing something?
Another thing, when the highlighter has finished updating the highlight, we need to redraw the screen. So the highlighter has to call a redraw function in Textarea/Editor? Then we have a circular import again. :-/
The highlighter don't have to call a redraw function at the moment this is handeled by the window it self. What i want to say you just use the show function on a widget once and it will be updated automatically.
the editor only works on TextAreaContent and I guess it should be the KeyPressEvents. How that whole thing with showing works is not clear yet I think. But the idea is, that the highliting is completely independent from show.
The editor has to be refactored into a concept with strong cohesion. Each submodul has to be rewritten to gain lossless git-merges.