From 6d82fda3c167c1ebdc7242f9ee6d42de2a47e838 Mon Sep 17 00:00:00 2001
From: nyamatongwe
SCI_SETSELFORE(bool useSelectionForeColour,
+ SCI_SETSELFORE(bool useSelectionForeColour,
int colour)
SCI_SETSELBACK(bool useSelectionBackColour,
int colour)
@@ -2155,7 +2155,7 @@ struct TextToFind {
SCI_GETCARETPERIOD
SCI_SETCARETWIDTH(int pixels)
SCI_GETCARETWIDTH
- SCI_SETHOTSPOTACTIVEFORE(bool useSetting,
+ SCI_SETHOTSPOTACTIVEFORE(bool useSetting,
int colour)
SCI_GETHOTSPOTACTIVEFORE
SCI_SETHOTSPOTACTIVEBACK(bool useSetting,
@@ -3046,6 +3046,60 @@ struct TextToFind {
SCI_INDICSETFORE(1, 0xff0000); (light blue)
SCI_INDICSETFORE(2, 0x0000ff); (light red)
+ Extended Indicators
+ Incorporating indicators within style bytes has proved limiting so Scintilla is changing to store
+ indicators separately from style bytes. The following APIs should be used for new code and existing
+ code should be updated to use these APIs rather than style bytes. After the transition is complete,
+ indicators within style bytes will be removed so that all the bits in each style byte can be used for
+ lexical states.
+ Up to 32 indicators may be used. Lexers should use indicators 3 to 7 and containers
+ 8 to 31 to ensure they do not conflict. Indicators 0, 1, and 2 are the existing style byte indicators and should
+ be avoided in the transition period.
+ Extended indicators are stored in a format similar to run length encoding which is efficient in both
+ speed and storage for sparse information.
+ An indicator may store different values for each range but currently all values are drawn the same.
+ In the future, it may be possible to draw different values in different styles.
+
+ SCI_SETINDICATORCURRENT(int indicator)
+ SCI_GETINDICATORCURRENT
+ These two messages set and get the indicator that will be affected by calls to
+ SCI_INDICATORFILLRANGE and
+ SCI_INDICATORCLEARRANGE.
+
+
+
+ SCI_SETINDICATORVALUE(int value)
+ SCI_GETINDICATORVALUE
+ These two messages set and get the value that will be set by calls to
+ SCI_INDICATORFILLRANGE.
+
+
+
+ SCI_INDICATORFILLRANGE(int position, int fillLength)
+ SCI_INDICATORCLEARRANGE(int position, int clearLength)
+ These two messages fill or clear a range for the current indicator.
+ SCI_INDICATORFILLRANGE fills with the
+ the current value.
+
+
+
+ SCI_INDICATORALLONFOR(int position)
+ Retrieve a bitmap value representing which indicators are non-zero at a position.
+
+
+
+ SCI_INDICATORVALUEAT(int indicator, int position)
+ Retrieve the value of a particular indicator at a position.
+
+
+
+ SCI_INDICATORSTART(int indicator, int position)
+ SCI_INDICATOREND(int indicator, int position)
+ Find the start or end of a range with one value from a position within the range.
+ Can be used to iterate through the document to discover all the indicator positions.
+
+
+
Autocompletion
Autocompletion displays a list box showing likely identifiers based upon the user's typing.
@@ -3642,9 +3696,9 @@ struct TextToFind {
SCK_ADD, SCK_BACK, SCK_DELETE, SCK_DIVIDE,
SCK_DOWN, SCK_END, SCK_ESCAPE, SCK_HOME,
SCK_INSERT, SCK_LEFT, SCK_MENU, SCK_NEXT (Page Down),
- SCK_PRIOR (Page Up), SCK_RETURN, SCK_RIGHT,
+ SCK_PRIOR (Page Up), SCK_RETURN, SCK_RIGHT,
SCK_RWIN,
- SCK_SUBTRACT, SCK_TAB, SCK_UP, and
+ SCK_SUBTRACT, SCK_TAB, SCK_UP, and
SCK_WIN.
The modifiers are a combination of zero or more of SCMOD_ALT,
--
cgit v1.2.3