diff options
author | Ferdinand Oeinck <unknown> | 2022-10-04 09:35:06 +1100 |
---|---|---|
committer | Ferdinand Oeinck <unknown> | 2022-10-04 09:35:06 +1100 |
commit | f4d5c00424eff7c84b4152b4df4de5c0ba4b12bc (patch) | |
tree | e239ae33e6bfb8844a150bb1c25b1b643741211d /include | |
parent | 232fad28e7003fd38e2468258bcfacc61381ef7a (diff) | |
download | scintilla-mirror-f4d5c00424eff7c84b4152b4df4de5c0ba4b12bc.tar.gz |
Feature [feature-requests:#1453] Added SCI_STYLESETINVISIBLEREPRESENTATION to
make it easier to edit around invisible text.
This also allows representing long lexemes with a single character to provide a
summarized view.
Diffstat (limited to 'include')
-rw-r--r-- | include/Scintilla.h | 2 | ||||
-rw-r--r-- | include/Scintilla.iface | 6 | ||||
-rw-r--r-- | include/ScintillaCall.h | 3 | ||||
-rw-r--r-- | include/ScintillaMessages.h | 2 |
4 files changed, 13 insertions, 0 deletions
diff --git a/include/Scintilla.h b/include/Scintilla.h index 5781674e3..03302e293 100644 --- a/include/Scintilla.h +++ b/include/Scintilla.h @@ -280,6 +280,8 @@ typedef sptr_t (*SciFnDirectStatus)(sptr_t ptr, unsigned int iMessage, uptr_t wP #define SCI_STYLESETHOTSPOT 2409 #define SCI_STYLESETCHECKMONOSPACED 2254 #define SCI_STYLEGETCHECKMONOSPACED 2255 +#define SCI_STYLESETINVISIBLEREPRESENTATION 2256 +#define SCI_STYLEGETINVISIBLEREPRESENTATION 2257 #define SC_ELEMENT_LIST 0 #define SC_ELEMENT_LIST_BACK 1 #define SC_ELEMENT_LIST_SELECTED 2 diff --git a/include/Scintilla.iface b/include/Scintilla.iface index bd6cb76de..b03b8c8ca 100644 --- a/include/Scintilla.iface +++ b/include/Scintilla.iface @@ -694,6 +694,12 @@ set void StyleSetCheckMonospaced=2254(int style, bool checkMonospaced) # Get whether a style may be monospaced. get bool StyleGetCheckMonospaced=2255(int style,) +# Set the invisible representation for a style. +set void StyleSetInvisibleRepresentation=2256(int style, string representation) + +# Get the invisible representation for a style. +get int StyleGetInvisibleRepresentation=2257(int style, stringresult representation) + enu Element=SC_ELEMENT_ val SC_ELEMENT_LIST=0 val SC_ELEMENT_LIST_BACK=1 diff --git a/include/ScintillaCall.h b/include/ScintillaCall.h index 0e79e37db..4b8e3c732 100644 --- a/include/ScintillaCall.h +++ b/include/ScintillaCall.h @@ -200,6 +200,9 @@ public: void StyleSetHotSpot(int style, bool hotspot); void StyleSetCheckMonospaced(int style, bool checkMonospaced); bool StyleGetCheckMonospaced(int style); + void StyleSetInvisibleRepresentation(int style, const char *representation); + int StyleGetInvisibleRepresentation(int style, char *representation); + std::string StyleGetInvisibleRepresentation(int style); void SetElementColour(Scintilla::Element element, ColourAlpha colourElement); ColourAlpha ElementColour(Scintilla::Element element); void ResetElementColour(Scintilla::Element element); diff --git a/include/ScintillaMessages.h b/include/ScintillaMessages.h index 663d6e12c..118655689 100644 --- a/include/ScintillaMessages.h +++ b/include/ScintillaMessages.h @@ -136,6 +136,8 @@ enum class Message { StyleSetHotSpot = 2409, StyleSetCheckMonospaced = 2254, StyleGetCheckMonospaced = 2255, + StyleSetInvisibleRepresentation = 2256, + StyleGetInvisibleRepresentation = 2257, SetElementColour = 2753, GetElementColour = 2754, ResetElementColour = 2755, |