From d6ac5bf56d40512ac0634d7a5bee6f7328b7d41f Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Sat, 19 Jan 2013 11:40:47 +1100 Subject: Support the three Unicode line ends NEL, LS, and PS in CellBuffer, Document, Editor and the message interface. Will only be turned on for lexers that support Unicode line ends. --- include/Scintilla.h | 3 +++ include/Scintilla.iface | 8 ++++++++ 2 files changed, 11 insertions(+) (limited to 'include') diff --git a/include/Scintilla.h b/include/Scintilla.h index 8c35cf696..f763002f5 100644 --- a/include/Scintilla.h +++ b/include/Scintilla.h @@ -857,6 +857,9 @@ typedef sptr_t (*SciFnDirect)(sptr_t ptr, unsigned int iMessage, uptr_t wParam, #define SCI_SETCARETLINEVISIBLEALWAYS 2655 #define SC_LINE_END_TYPE_DEFAULT 0 #define SC_LINE_END_TYPE_UNICODE 1 +#define SCI_SETLINEENDTYPESALLOWED 2656 +#define SCI_GETLINEENDTYPESALLOWED 2657 +#define SCI_GETLINEENDTYPESACTIVE 2658 #define SCI_STARTRECORD 3001 #define SCI_STOPRECORD 3002 #define SCI_SETLEXER 4001 diff --git a/include/Scintilla.iface b/include/Scintilla.iface index eb77a584a..714f3ee93 100644 --- a/include/Scintilla.iface +++ b/include/Scintilla.iface @@ -2280,6 +2280,14 @@ enu LineEndType=SC_LINE_END_TYPE_ val SC_LINE_END_TYPE_DEFAULT=0 val SC_LINE_END_TYPE_UNICODE=1 +# Set the line end types that the application wants to use. May not be used if incompatible with lexer or encoding. +set void SetLineEndTypesAllowed=2656(int lineEndBitSet,) + +# Get the line end types currently allowed. +get int GetLineEndTypesAllowed=2657(,) + +# Get the line end types currently recognised. May be a subset of the allowed types due to lexer limitation. +get int GetLineEndTypesActive=2658(,) # Start notifying the container of all key presses and commands. fun void StartRecord=3001(,) -- cgit v1.2.3