From f4d5c00424eff7c84b4152b4df4de5c0ba4b12bc Mon Sep 17 00:00:00 2001 From: Ferdinand Oeinck Date: Tue, 4 Oct 2022 09:35:06 +1100 Subject: 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. --- call/ScintillaCall.cxx | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'call') 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(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(element), colourElement); } -- cgit v1.2.3