The editor should track, which lines were modified after the last save and mark them. After saving again, these lines can be marked in another color. As example consider the highlighting in Code::Blocks.
Analysis:
Two new functions have to be added corresponding to two new marker types:
void NumeReEditor::markModified(int line)
void NumeReEditor::markSaved() // applies to all lines
The first function has to be hooked to the OnChar() function and the second to the SaveFile().
Implementation:
The functionality was implemented as proposed by the analysis. Implementation tests were passed successfully.
Documentation:
The new functionality was added to the documentation article about the editor in both languages.
Tests:
The modification tracker works now as expected. Functionality was implemented successfully.
Anonymous
Diff:
Diff:
Diff:
Diff: