aboutsummaryrefslogtreecommitdiffhomepage
path: root/call
diff options
context:
space:
mode:
authorFerdinand Oeinck <unknown>2022-10-04 09:35:06 +1100
committerFerdinand Oeinck <unknown>2022-10-04 09:35:06 +1100
commitf4d5c00424eff7c84b4152b4df4de5c0ba4b12bc (patch)
treee239ae33e6bfb8844a150bb1c25b1b643741211d /call
parent232fad28e7003fd38e2468258bcfacc61381ef7a (diff)
downloadscintilla-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 'call')
-rw-r--r--call/ScintillaCall.cxx12
1 files changed, 12 insertions, 0 deletions
diff --git a/call/ScintillaCall.cxx b/call/ScintillaCall.cxx
index 1f496c53d..434e3fdf0 100644
--- a/call/ScintillaCall.cxx
+++ b/call/ScintillaCall.cxx
@@ -647,6 +647,18 @@ bool ScintillaCall::StyleGetCheckMonospaced(int style) {
return Call(Message::StyleGetCheckMonospaced, style);
}
+void ScintillaCall::StyleSetInvisibleRepresentation(int style, const char *representation) {
+ CallString(Message::StyleSetInvisibleRepresentation, style, representation);
+}
+
+int ScintillaCall::StyleGetInvisibleRepresentation(int style, char *representation) {
+ return static_cast<int>(CallPointer(Message::StyleGetInvisibleRepresentation, style, representation));
+}
+
+std::string ScintillaCall::StyleGetInvisibleRepresentation(int style) {
+ return CallReturnString(Message::StyleGetInvisibleRepresentation, style);
+}
+
void ScintillaCall::SetElementColour(Scintilla::Element element, ColourAlpha colourElement) {
Call(Message::SetElementColour, static_cast<uintptr_t>(element), colourElement);
}