From a534721011f35a1a56c2a815f8b2fa31e0a8ebbd Mon Sep 17 00:00:00 2001 From: Robin Haberkorn Date: Tue, 9 Sep 2025 20:50:07 +0300 Subject: added SC_LINE_END_TYPE_NONE: allows ignoring all line ends This can help when using Scintilla views as command line widgets. It can also help when using Scintilla to edit binary files as you don't want to attach special meaning to CR and LF. This patch will not be merged for the time being, so we strive to reduce the number of touched lines. See https://groups.google.com/g/scintilla-interest/c/iE6E4n9zWT4 --- doc/ScintillaDoc.html | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'doc') diff --git a/doc/ScintillaDoc.html b/doc/ScintillaDoc.html index c21bd2e29..3c5a4ab7f 100644 --- a/doc/ScintillaDoc.html +++ b/doc/ScintillaDoc.html @@ -3041,15 +3041,17 @@ struct Sci_TextToFindFull {

SCI_GETLINEENDTYPESSUPPORTED → int
SCI_GETLINEENDTYPESSUPPORTED reports the different types of line ends supported - by the current lexer. This is a bit set although there is currently only a single choice - with either SC_LINE_END_TYPE_DEFAULT (0) or SC_LINE_END_TYPE_UNICODE (1). + by the current lexer. This is a choice between SC_LINE_END_TYPE_DEFAULT (0), + SC_LINE_END_TYPE_UNICODE (1) and SC_LINE_END_TYPE_NONE (2). These values are also used by the other messages concerned with Unicode line ends.

-

SCI_SETLINEENDTYPESALLOWED(int lineEndBitSet)
+

SCI_SETLINEENDTYPESALLOWED(int lineEndType)
SCI_GETLINEENDTYPESALLOWED → int
By default, only the ASCII line ends are interpreted. Unicode line ends may be requested with SCI_SETLINEENDTYPESALLOWED(SC_LINE_END_TYPE_UNICODE) but this will be ineffective unless the lexer also allows you Unicode line ends. + SC_LINE_END_TYPE_NONE disables interpretation of all line ends which effectively + creates a one-line view. SCI_GETLINEENDTYPESALLOWED returns the current state.

SCI_GETLINEENDTYPESACTIVE → int
-- cgit v1.2.3