From a5b8fca36a7a050edfa1c4bb9e91f7722e12f3f6 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. --- doc/ScintillaDoc.html | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'doc/ScintillaDoc.html') diff --git a/doc/ScintillaDoc.html b/doc/ScintillaDoc.html index 0dfe986f4..deae30251 100644 --- a/doc/ScintillaDoc.html +++ b/doc/ScintillaDoc.html @@ -3015,15 +3015,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