From 5d0f00f0ce3cda283149f0ed71fb195fcd5060d8 Mon Sep 17 00:00:00 2001
From: Neil Scintilla can display document changes (modified, saved, ...) in the margin or in the text. The image shows the default visuals which can be altered by the application.
+ In the text, inserted characters appear with coloured underlines and points where characters were deleted are shown with small triangles.
+ The margin shows a block indicating the overall state of the line, prioritising the more consequential modified states.
+ The states are
+ modified (orange),
+ saved (green),
+ saved then reverted to modified (green-yellow),
+ and saved then reverted to original (cyan).
+ This feature uses a moderate amount of memory proportional to the amount of modifications made.
On huge documents, this could be significant so could be disabled when it would cause excessive memory use. SCI_SETCHANGEHISTORY(int changeHistory)
SCI_GETCHANGEHISTORY → int
SCI_SETCHANGEHISTORY turns this feature on and off and determines whether changes are visible in
- the margin or text or both.
- The changeHistory argument can be a combination of:
Change history depends on the undo history and can only be enabled when undo history is enabled and empty. + It should be enabled once when a file is loaded after calling + SCI_SETUNDOCOLLECTION(true) and + SCI_SETSAVEPOINT.
+The changeHistory argument can be a combination of: