From 926cb6f7d228b347db16a45e1f2632da475da1f0 Mon Sep 17 00:00:00 2001
From: Neil Last edited 18 July 2022 NH Last edited 31 July 2022 NH Scintilla 5 has moved the lexers from Scintilla into a new
Lexilla project.Scintilla Documentation
-
@@ -345,149 +345,139 @@
+
○ Change history
+
○ Selection and information
○ By character or UTF-16 code unit
- ○ Multiple Selection and Virtual Space
-
+
○ Multiple Selection and Virtual Space
+
○ Scrolling and automatic scrolling
○ White space
-
- ○ Cursor
-
+
○ Cursor
+
○ Mouse capture
○ Line endings
- ○ Words
-
+
○ Words
+
○ Styling
○ Style definition
-
- ○ Element colours
-
+
○ Element colours
+
○ Selection, caret, and hotspot styles
○ Character representations
-
- ○ Margins
-
+
○ Margins
+
○ Annotations
○ Other settings
-
- ○ Brace highlighting
-
+
○ Brace highlighting
+
○ Tabs and Indentation
Guides
○ Markers
-
- ○ Indicators
-
+
○ Indicators
+
○ Autocompletion
○ User lists
-
- ○ Call tips
-
+
○ Call tips
+
○ Keyboard commands
○ Key bindings
-
- ○ Popup edit menu
-
+
○ Popup edit menu
+
○ Macro recording
○ Printing
-
- ○ Direct access
-
+
○ Direct access
+
○ Multiple views
○ Background loading and saving
-
- ○ Folding
-
+
○ Folding
+
○ Line wrapping
○ Zooming
-
- ○ Long lines
-
+
○ Long lines
+
○ Accessibility
○ Lexer
-
- ○ Lexer objects
-
+
○ Lexer objects
+
○ Notifications
○ Images
-
- ○ GTK
-
+
+ ○ GTK
+
○ Provisional messages
○ Deprecated messages
+
-
- ○ Edit messages never
supported by Scintilla
-
+ ○ Removed features
○ Building Scintilla
+
@@ -1343,6 +1333,157 @@ struct Sci_TextToFindFull {
Coalescing treats coalescible container actions as transparent so will still only group together insertions that
look like typing or deletions that look like multiple uses of the Backspace or Delete keys.
○ End of Line Annotations
-
Scintilla can display document changes (modified, saved, ...) in the margin or in the text.
+ +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(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:
SC_CHANGE_HISTORY_DISABLED |
+
+ 0 | + +The default: change history turned off. | +
|---|---|---|
SC_CHANGE_HISTORY_ENABLED |
+
+ 1 | + +Track changes to the document. | +
SC_CHANGE_HISTORY_MARKERS |
+
+ 2 | + +Display changes in the margin using the SC_MARKNUM_HISTORY markers. |
+
SC_CHANGE_HISTORY_INDICATORS |
+
+ 4 | + +Display changes in the margin using the INDICATOR_HISTORY indicators. |
+
There are default visuals assigned to each history marker and indicator but these may be overridden by the application.
+ +Markers:
+ +SC_MARKNUM_HISTORY_REVERTED_TO_ORIGIN |
+
+ 21 | + +A change was made to this line and saved but then reverted to its original state. + This line is different to its state on disk. | +
|---|---|---|
SC_MARKNUM_HISTORY_SAVED |
+
+ 22 | + +This line was modified and saved. This line is the same as its state on disk. | +
SC_MARKNUM_HISTORY_MODIFIED |
+
+ 23 | + +This line was modified but not yet saved. This line is different to its state on disk. | +
SC_MARKNUM_HISTORY_REVERTED_TO_MODIFIED |
+
+ 24 | + +A change was made to this line and saved but then reverted but not to its original state. + This line is different to its state on disk. | +
Indicators:
+ +INDICATOR_HISTORY_REVERTED_TO_ORIGIN_INSERTION |
+ 36 | +Text was deleted and saved but then reverted to its original state. + This text is not present on disk. | +
|---|---|---|
INDICATOR_HISTORY_REVERTED_TO_ORIGIN_DELETION |
+ 37 | +Text was inserted and saved but then reverted to its original state. + This range is different to its state on disk. | +
INDICATOR_HISTORY_SAVED_INSERTION |
+ 38 | +Text was inserted and saved. This text is the same as on disk. | +
INDICATOR_HISTORY_SAVED_DELETION |
+ 39 | +Text was deleted and saved. This range is the same as on disk. | +
INDICATOR_HISTORY_MODIFIED_INSERTION |
+ 40 | +Text was inserted but not yet saved. This text is not present on disk. | +
INDICATOR_HISTORY_MODIFIED_DELETION |
+ 41 | +Text was deleted but not yet saved. This range is different to its state on disk. | +
INDICATOR_HISTORY_REVERTED_TO_MODIFIED_INSERTION |
+ 42 | +Text was deleted and saved but then reverted but not to its original state. + This text is not present on disk. | +
INDICATOR_HISTORY_REVERTED_TO_MODIFIED_DELETION |
+ 43 | +Text was inserted and saved but then reverted but not to its original state. + This range is different to its state on disk. | +
Scintilla maintains a selection that stretches between two points, the anchor and the
@@ -4990,7 +5131,10 @@ struct Sci_TextToFindFull {
Scintilla in folding margins, and have symbolic names of the form SC_MARKNUM_*,
for example SC_MARKNUM_FOLDEROPEN.
Marker numbers 0 to 24 have no pre-defined function; you can use them to mark syntax errors +
Marker numbers 21 to 24 are used for Change history if that is enabled but are + otherwise free for application use.
+ +Marker numbers 0 to 20 have no pre-defined function; you can use them to mark syntax errors or the current point of execution, break points, or whatever you need marking. If you do not need folding, you can use all 32 for any purpose you wish.
@@ -5376,11 +5520,14 @@ struct Sci_TextToFindFull { They may also be invisible when used to track pieces of content for the application asINDIC_HIDDEN.
The SCI_INDIC* messages allow you to get and set the visual appearance of the
- indicators. They all use an indicator argument in the range 0 to INDICATOR_MAX(35)
+ indicators. They all use an indicator argument in the range 0 to INDICATOR_MAX(43)
to set the indicator to style. To prevent interference the set of indicators is divided up into a range for use
by lexers (0..7) a range for use by containers
(8=INDICATOR_CONTAINER .. 31=INDICATOR_IME-1)
- and a range for IME indicators (32=INDICATOR_IME .. 35=INDICATOR_IME_MAX).
INDICATOR_IME .. 35=INDICATOR_IME_MAX)
+ and a range for Change history
+ (36=INDICATOR_HISTORY_REVERTED_TO_ORIGIN_INSERTION ..
+ 43=INDICATOR_HISTORY_REVERTED_TO_MODIFIED_DELETION).
The INDICATOR_* values used for dividing up indicators
were previously INDIC_CONTAINER, INDIC_IME,
--
cgit v1.2.3