From eed631b69225c5282e4a35cf788d4f5b9eef11ae Mon Sep 17 00:00:00 2001
From: nyamatongwe In the descriptions that follow, the messages are described as function calls with zero, one
or two arguments. These two arguments are the standard wParam and
- lParam familiar to Windows programmers. These parameters are integers that
- are large enough to hold pointers, and the return value is also an integer large enough to contain a
+ lParam familiar to Windows programmers. These parameters are integers that
+ are large enough to hold pointers, and the return value is also an integer large enough to contain a
pointer.
Although the commands only use the
arguments described, because all messages have two arguments whether Scintilla uses them or
@@ -253,7 +253,7 @@
@@ -458,7 +458,7 @@
This pair of routines sets and reads back the number of bits in each cell to use for styling,
to a maximum of 7 style bits. The remaining bits can be used as indicators. The standard
setting is o Edit messages never
supported by Scintilla
-
+
o Building Scintilla
SCI_SETSTYLEBITS(5).
- The number of styling bits needed by the current lexer can be found with
+ The number of styling bits needed by the current lexer can be found with
.
TextRange and CharacterRange
@@ -490,7 +490,7 @@ struct TextRange {
SCI_ENCODEDFROMUTF8 converts a UTF-8 string into the document's
encoding which is useful for taking the results of a find dialog, for example, and receiving
a string of bytes that can be searched for in the document. Since the text can contain nul bytes,
- the SCI_SETLENGTHFORENCODE method can be used to set the
+ the SCI_SETLENGTHFORENCODE method can be used to set the
length that will be converted. If set to -1, the length is determined by finding a nul byte.
The length of the converted string is returned.
SCI_SETPASTECONVERTENDINGS(bool convert)
SCI_GETPASTECONVERTENDINGS
If this property is set then when text is pasted any line ends are converted to match the document's
- end of line mode as set with
+ end of line mode as set with
.
Currently only changeable on Windows. On GTK+ pasted text is always converted.
SCI_GETCURLINE(int textLen, char *text)
This retrieves the text of the line containing the caret and returns the position within the
line of the caret. Pass in char* text pointing at a buffer large enough to hold
- the text you wish to retrieve and a terminating 0 character.
+ the text you wish to retrieve and a terminating 0 character.
Set textLen to the
length of the buffer which must be at least 1 to hold the terminating 0 character.
If the text argument is 0 then the length that should be allocated
@@ -2042,7 +2042,7 @@ struct TextToFind {
SC_CHARSET_TURKISH, and SC_CHARSET_VIETNAMESE.
The character sets supported on GTK+ are:
- SC_CHARSET_ANSI, SC_CHARSET_CYRILLIC (code page 1251),
+ SC_CHARSET_ANSI, SC_CHARSET_CYRILLIC (code page 1251),
SC_CHARSET_EASTEUROPE,
SC_CHARSET_GB2312, SC_CHARSET_HANGUL,
SC_CHARSET_RUSSIAN (KOI8-R), SC_CHARSET_SHIFTJIS, and
@@ -2827,7 +2827,7 @@ struct TextToFind {
href="#SCI_STARTSTYLING">SCI_STARTSTYLING with a INDICS_MASK mask
and with the values
INDIC0_MASK, INDIC1_MASK and INDIC2_MASK.
If you are using indicators in a buffer that has a lexer active (see ), you must save lexing state information before setting any indicators and restore it afterwards. @@ -3463,7 +3463,7 @@ struct TextToFind {
SCI_BACKTABSCI_SELECTIONDUPLICATESC_FOLDLEVELBASE (1024) to allow unsigned arithmetic on folding levels. There are
two addition flag bits. SC_FOLDLEVELWHITEFLAG indicates that the line is blank and
allows it to be treated slightly different then its level may indicate. For example, blank
- lines should generally not be fold points and will be considered part of the preceding section even though
- they may have a lesser fold level.
+ lines should generally not be fold points and will be considered part of the preceding section even though
+ they may have a lesser fold level.
SC_FOLDLEVELHEADERFLAG indicates that
the line is a header (fold point).
@@ -4642,7 +4642,7 @@ href="#SCI_POSITIONFROMLINE">SCI_POSITIONFROMLINE(lineNumber);
lineOn GTK+, the following functions create a Scintilla widget, communicate with it and allow +
On GTK+, the following functions create a Scintilla widget, communicate with it and allow resources to be released after all Scintilla widgets hace been destroyed.
GtkWidget *scintilla_new()
void scintilla_set_id(ScintillaObject *sci, uptr_t id)
sptr_t scintilla_send_message(ScintillaObject *sci,unsigned int iMessage, uptr_t wParam, sptr_t lParam)
void scintilla_release_resources()
-
+
GtkWidget *scintilla_new()
- Create a new Scintilla widget. The returned pointer can be added to a container and displayed in the same way as other
+ Create a new Scintilla widget. The returned pointer can be added to a container and displayed in the same way as other
widgets.
void scintilla_set_id(ScintillaObject *sci, uptr_t id)
--
cgit v1.2.3