From f997170c3eb0afa64d10b39b86799bad67dc5c02 Mon Sep 17 00:00:00 2001 From: Neil Date: Thu, 3 Jun 2021 20:24:44 +1000 Subject: Add APIs for setting appearance (traditional blob or plain text) and colour of representations and support setting a representation for the "\r\n" line end sequence. --- doc/ScintillaDoc.html | 54 ++++++++++++++++++++++++++++++++++++++++++++++- doc/ScintillaHistory.html | 4 ++++ 2 files changed, 57 insertions(+), 1 deletion(-) (limited to 'doc') diff --git a/doc/ScintillaDoc.html b/doc/ScintillaDoc.html index 14969616e..bae44931d 100644 --- a/doc/ScintillaDoc.html +++ b/doc/ScintillaDoc.html @@ -3842,7 +3842,12 @@ struct Sci_TextToFind { SCI_SETREPRESENTATION(const char *encodedCharacter, const char *representation)
SCI_GETREPRESENTATION(const char *encodedCharacter, char *representation) → int
SCI_CLEARREPRESENTATION(const char *encodedCharacter)
- SCI_SETCONTROLCHARSYMBOL(int symbol)
+ SCI_CLEARALLREPRESENTATIONS
+ SCI_SETREPRESENTATIONAPPEARANCE(const char *encodedCharacter, int appearance)
+ SCI_GETREPRESENTATIONAPPEARANCE(const char *encodedCharacter) → int
+ SCI_SETREPRESENTATIONCOLOUR(const char *encodedCharacter, colouralpha colour)
+ SCI_GETREPRESENTATIONCOLOUR(const char *encodedCharacter) → colouralpha
+ SCI_SETCONTROLCHARSYMBOL(int symbol)
SCI_GETCONTROLCHARSYMBOL → int
@@ -3859,9 +3864,56 @@ struct Sci_TextToFind {

The encodedCharacter parameter is a NUL-terminated string of the bytes for one character in the current encoding. This can not be used to set a representation for multiple-character strings.

+

One exception to the single character restriction is that the two character sequence "\r\n" (Carriage Return + Line Feed) + can have a representation that is visible in line end viewing (SCI_SETVIEWEOL) mode. + If there is no representation for "\r\n" then the individual '\r' and '\n' representations will be seen.

+

The NUL (0) character is a special case since the encodedCharacter parameter is NUL terminated, the NUL character is specified as an empty string.

+

SCI_CLEARALLREPRESENTATIONS
+ Reset representations to defaults with SCI_CLEARALLREPRESENTATIONS.

+ +

SCI_SETREPRESENTATIONAPPEARANCE(const char *encodedCharacter, int appearance)
+ SCI_GETREPRESENTATIONAPPEARANCE(const char *encodedCharacter) → int
+ The appearance may be changed using these flags. If a colour is set and the appearance is set without + SC_REPRESENTATION_COLOUR then the representation will show in the colour of the underlying text.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + +
SC_REPRESENTATION_PLAIN0Draw the representation text with no decorations.
SC_REPRESENTATION_BLOB1Draw the representation text inverted in a rounded rectangle. This is the default appearance.
SC_REPRESENTATION_COLOUR0x10Draw the representation in the colour set with SCI_SETREPRESENTATIONCOLOUR + instead of in the colour of the style of the text being represented.
+ + +

SCI_SETREPRESENTATIONCOLOUR(const char *encodedCharacter, colouralpha colour)
+ SCI_GETREPRESENTATIONCOLOUR(const char *encodedCharacter) → colouralpha
+ The colour and translucency of a representation may be set.

+

SCI_SETCONTROLCHARSYMBOL(int symbol)
SCI_GETCONTROLCHARSYMBOL → int
The mnemonics may be replaced by a nominated symbol with an ASCII code in the diff --git a/doc/ScintillaHistory.html b/doc/ScintillaHistory.html index 19ba6ca78..30008fc85 100644 --- a/doc/ScintillaHistory.html +++ b/doc/ScintillaHistory.html @@ -581,6 +581,10 @@ Released 2 June 2021.

  • + Add APIs for setting appearance (traditional blob or plain text) and colour of representations + and support setting a representation for the "\r\n" line end sequence. +
  • +
  • Fixed bug with SCI_GETLASTCHILD. Bug #2260.
  • -- cgit v1.2.3