From 10dc4e06d749a167ec4562f86030ff3686fdd296 Mon Sep 17 00:00:00 2001
From: Don Ho
Date: Sun, 17 Jul 2011 22:30:49 +0000
Subject: [PATCH] [UPDATE] Update Scintilla to 2.27.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@791 f5eea248-9336-0410-98b8-ebc06183d4e3
---
scintilla/cocoa/InfoBar.mm | 2 +-
scintilla/cocoa/PlatCocoa.h | 6 +-
scintilla/cocoa/PlatCocoa.mm | 1456 ++++++++---------
scintilla/cocoa/QuartzTextLayout.h | 150 +-
scintilla/cocoa/QuartzTextStyle.h | 112 +-
scintilla/cocoa/QuartzTextStyleAttribute.h | 145 +-
scintilla/cocoa/ScintillaCallTip.h | 63 -
scintilla/cocoa/ScintillaCallTip.mm | 117 --
scintilla/cocoa/ScintillaCocoa.h | 11 +-
scintilla/cocoa/ScintillaCocoa.mm | 379 +++--
.../project.pbxproj | 4 +
scintilla/cocoa/ScintillaListBox.h | 64 -
scintilla/cocoa/ScintillaListBox.mm | 110 --
.../ScintillaTest.xcodeproj/project.pbxproj | 16 +-
scintilla/cocoa/ScintillaView.h | 2 +
scintilla/cocoa/ScintillaView.mm | 71 +-
scintilla/doc/SciCoding.html | 88 +-
scintilla/doc/ScintillaDoc.html | 245 ++-
scintilla/doc/ScintillaDownload.html | 10 +-
scintilla/doc/ScintillaHistory.html | 255 +++
scintilla/doc/ScintillaRelated.html | 15 +-
scintilla/doc/index.html | 14 +-
scintilla/gtk/PlatGTK.cxx | 181 +-
scintilla/gtk/ScintillaGTK.cxx | 583 +++++--
scintilla/gtk/makefile | 16 +-
scintilla/include/Platform.h | 9 +-
scintilla/include/Scintilla.h | 40 +-
scintilla/include/Scintilla.iface | 62 +-
scintilla/lexers/LexCPP.cxx | 43 +-
scintilla/lexers/LexHTML.cxx | 65 +-
scintilla/lexers/LexInno.cxx | 11 +-
scintilla/lexers/LexLua.cxx | 43 +-
scintilla/lexers/LexMatlab.cxx | 12 +-
scintilla/lexers/LexOthers.cxx | 10 +-
scintilla/lexers/LexPerl.cxx | 979 ++++++-----
scintilla/lexers/LexPython.cxx | 14 +-
scintilla/lexers/LexSQL.cxx | 22 +-
scintilla/lexers/LexVerilog.cxx | 30 +-
scintilla/lexlib/CharacterSet.h | 1 -
scintilla/lexlib/SparseState.h | 4 +-
scintilla/macosx/PlatMacOSX.cxx | 33 +-
scintilla/macosx/makefile | 2 +-
scintilla/src/CallTip.cxx | 2 +-
scintilla/src/ContractionState.cxx | 8 +
scintilla/src/ContractionState.h | 1 +
scintilla/src/Decoration.cxx | 2 +-
scintilla/src/Document.cxx | 169 +-
scintilla/src/Document.h | 45 +-
scintilla/src/Editor.cxx | 482 ++++--
scintilla/src/Editor.h | 19 +-
scintilla/src/Indicator.cxx | 29 +-
scintilla/src/Indicator.h | 3 +-
scintilla/src/LineMarker.cxx | 140 +-
scintilla/src/LineMarker.h | 11 +-
scintilla/src/PositionCache.cxx | 74 +-
scintilla/src/PositionCache.h | 23 +-
scintilla/src/RESearch.cxx | 6 +-
scintilla/src/RunStyles.cxx | 34 +-
scintilla/src/RunStyles.h | 8 +-
scintilla/src/ScintillaBase.cxx | 7 +-
scintilla/src/Style.cxx | 146 +-
scintilla/src/Style.h | 64 +-
scintilla/src/ViewStyle.cxx | 132 +-
scintilla/src/ViewStyle.h | 20 +
scintilla/version.txt | 2 +-
scintilla/win32/PlatWin.cxx | 5 +-
scintilla/win32/ScintRes.rc | 8 +-
scintilla/win32/ScintillaWin.cxx | 47 +-
68 files changed, 4317 insertions(+), 2665 deletions(-)
delete mode 100644 scintilla/cocoa/ScintillaCallTip.h
delete mode 100644 scintilla/cocoa/ScintillaCallTip.mm
delete mode 100644 scintilla/cocoa/ScintillaListBox.h
delete mode 100644 scintilla/cocoa/ScintillaListBox.mm
diff --git a/scintilla/cocoa/InfoBar.mm b/scintilla/cocoa/InfoBar.mm
index 27b9aa12..dccafa7e 100644
--- a/scintilla/cocoa/InfoBar.mm
+++ b/scintilla/cocoa/InfoBar.mm
@@ -46,7 +46,7 @@
//--------------------------------------------------------------------------------------------------
- (void) selectWithFrame: (NSRect) aRect inView: (NSView*) controlView editor: (NSText*) textObj
- delegate:(id) anObject start: (int) selStart length: (int) selLength
+ delegate:(id) anObject start: (NSInteger) selStart length: (NSInteger) selLength
{
aRect = [self drawingRectForBounds: aRect];
mIsEditingOrSelecting = YES;
diff --git a/scintilla/cocoa/PlatCocoa.h b/scintilla/cocoa/PlatCocoa.h
index a85462e8..f84e3ff6 100644
--- a/scintilla/cocoa/PlatCocoa.h
+++ b/scintilla/cocoa/PlatCocoa.h
@@ -23,6 +23,7 @@
NSRect PRectangleToNSRect(Scintilla::PRectangle& rc);
Scintilla::PRectangle NSRectToPRectangle(NSRect& rc);
+CFStringEncoding EncodingFromCharacterSet(bool unicode, int characterSet);
@interface ScintillaContextMenu : NSMenu
{
@@ -47,6 +48,9 @@ private:
/** The text layout instance */
QuartzTextLayout* textLayout;
+ int codePage;
+ int verticalDeviceResolution;
+
/** If the surface is a bitmap context, contains a reference to the bitmap data. */
uint8_t* bitmapData;
/** If the surface is a bitmap context, stores the dimensions of the bitmap. */
@@ -111,7 +115,7 @@ public:
void FlushCachedState();
void SetUnicodeMode(bool unicodeMode_);
- void SetDBCSMode(int codePage);
+ void SetDBCSMode(int codePage_);
}; // SurfaceImpl class
} // Scintilla namespace
diff --git a/scintilla/cocoa/PlatCocoa.mm b/scintilla/cocoa/PlatCocoa.mm
index ffaa48fe..f777a0db 100644
--- a/scintilla/cocoa/PlatCocoa.mm
+++ b/scintilla/cocoa/PlatCocoa.mm
@@ -22,6 +22,7 @@
#include
#include
#include
+#include
In a regular expression, special characters interpreted are:
@@ -722,6 +721,8 @@ struct Sci_TextRange {
+ Regular expressions will only match ranges within a single line, never matching over multiple lines.
+
SCI_FINDTEXT(int searchFlags, Sci_TextToFind *ttf)
This message searches for text in the document. It does not use or move the current selection.
@@ -730,9 +731,8 @@ struct Sci_TextRange {
The Sci_TextToFind
structure is defined in Scintilla.h
; set
chrg.cpMin
and chrg.cpMax
with the range of positions in the document
- to search. If SCFIND_REGEXP
is not included in the flags, you can search backwards by
- setting chrg.cpMax
less than chrg.cpMin
. If SCFIND_REGEXP
- is included, the search is always forwards (even if chrg.cpMax
is less than chrg.cpMin
).
+ to search. You can search backwards by
+ setting chrg.cpMax
less than chrg.cpMin
.
Set the lpstrText
member of Sci_TextToFind
to point at a zero terminated
text string holding the search pattern. If your language makes the use of Sci_TextToFind
difficult, you should consider using SCI_SEARCHINTARGET
instead.
@@ -772,9 +772,7 @@ struct Sci_TextToFind {
SCI_SEARCHNEXT
and SCI_SEARCHPREV
search for the next and previous
occurrence of the zero terminated search string pointed at by text. The search is modified by
- the searchFlags
. If you request a regular
- expression, SCI_SEARCHPREV
finds the first occurrence of the search string in the
- document, not the previous one before the anchor point.
+ the searchFlags
.
The return value is -1 if nothing is found, otherwise the return value is the start position
of the matching text. The selection is updated to show the matched text, but is not scrolled
@@ -1079,6 +1077,7 @@ struct Sci_TextToFind {
SCI_GETSELECTIONSTART
SCI_SETSELECTIONEND(int position)
SCI_GETSELECTIONEND
+ SCI_SETEMPTYSELECTION(int pos)
SCI_SELECTALL
SCI_LINEFROMPOSITION(int position)
SCI_POSITIONFROMLINE(int line)
@@ -1114,6 +1113,8 @@ struct Sci_TextToFind {
SCI_TEXTWIDTH(int styleNumber, const char *text)
SCI_TEXTHEIGHT(int line)
SCI_CHOOSECARETX
+ SCI_MOVESELECTEDLINESUP
+ SCI_MOVESELECTEDLINESDOWN
SCI_GETTEXTLENGTH
@@ -1229,6 +1230,9 @@ struct Sci_TextToFind {
current position or the anchor position. SCI_GETSELECTIONEND
returns the larger of
the two values.
+ SCI_SETEMPTYSELECTION(int pos)
+ This removes any selection and sets the caret at pos
. The caret is not scrolled into view.
+
SCI_SELECTALL
This selects all the text in the document. The current position is not scrolled into view.
@@ -1458,6 +1462,16 @@ struct Sci_TextToFind {
user and this value is then used when moving vertically such as by using the up and down keys.
This message sets the current x position of the caret as the remembered value.
+ SCI_MOVESELECTEDLINESUP
+ Move the selected lines up one line, shifting the line above after the selection.
+ The selection will be automatically extended to the beginning of the selection's first line and the end of the seletion's last line.
+ If nothing was selected, the line the cursor is currently at will be selected.
+
+ SCI_MOVESELECTEDLINESDOWN
+ Move the selected lines down one line, shifting the line below before the selection.
+ The selection will be automatically extended to the beginning of the selection's first line and the end of the seletion's last line.
+ If nothing was selected, the line the cursor is currently at will be selected.
+
Multiple Selection and Virtual Space
@@ -1549,7 +1563,8 @@ struct Sci_TextToFind {
SCI_SETMULTIPLESELECTION(bool multipleSelection)
SCI_GETMULTIPLESELECTION
- Enable or disable multiple selection.
+ Enable or disable multiple selection. When multiple selection is disabled, it is not possible to select
+ multiple ranges by holding down the Ctrl key while dragging with the mouse.
SCI_SETADDITIONALSELECTIONTYPING(bool additionalSelectionTyping)
@@ -2742,6 +2757,8 @@ struct Sci_TextToFind {
SCI_MARGINTEXTCLEARALL
SCI_MARGINSETSTYLEOFFSET(int style)
SCI_MARGINGETSTYLEOFFSET
+ SCI_SETMARGINOPTIONS(int marginOptions)
+ SCI_GETMARGINOPTIONS
SCI_SETMARGINTYPEN(int margin, int iType)
@@ -2849,6 +2866,15 @@ struct Sci_TextToFind {
256 upto 511 so they do not overlap styles set by lexers. Each style number set with SCI_MARGINSETSTYLE
or SCI_MARGINSETSTYLES
has the offset added before looking up the style.
+
+ SCI_SETMARGINOPTIONS(int marginOptions)
+ SCI_GETMARGINOPTIONS
+ Define margin options by enabling appropriate bit flags. At the moment, only one flag is available
+ SC_MARGINOPTION_SUBLINESELECT
=1, which controls how wrapped lines are selected when clicking
+ on margin in front of them. If SC_MARGINOPTION_SUBLINESELECT
is set only sub line of wrapped
+ line is selected, otherwise whole wrapped line is selected. Margin options are set to
+ SC_MARGINOPTION_NONE
=0 by default.
+
Annotations
@@ -3089,6 +3115,8 @@ struct Sci_TextToFind {
SCI_BRACEHIGHLIGHT(int pos1, int
pos2)
SCI_BRACEBADLIGHT(int pos1)
+ SCI_BRACEHIGHLIGHTINDICATOR(bool useBraceHighlightIndicator, int indicatorNumber)
+ SCI_BRACEBADLIGHTINDICATOR(bool useBraceBadLightIndicator, int indicatorNumber)
SCI_BRACEMATCH(int position, int
maxReStyle)
@@ -3107,6 +3135,12 @@ struct Sci_TextToFind {
that is unmatched. Using a position of INVALID_POSITION
(-1) removes the
highlight.
+ SCI_BRACEHIGHLIGHTINDICATOR(bool useBraceHighlightIndicator, int indicatorNumber)
+ Use specified indicator to highlight matching braces instead of changing their style.
+
+ SCI_BRACEBADLIGHTINDICATOR(bool useBraceBadLightIndicator, int indicatorNumber)
+ Use specified indicator to highlight non matching brace instead of changing its style.
+
SCI_BRACEMATCH(int pos, int maxReStyle)
The SCI_BRACEMATCH
message finds a corresponding matching brace given
pos
, the position of one brace. The brace characters handled are '(', ')', '[',
@@ -3275,6 +3309,9 @@ struct Sci_TextToFind {
colour)
SCI_MARKERSETBACK(int markerNumber, int
colour)
+ SCI_MARKERSETBACKSELECTED(int markerNumber, int
+ colour)
+ SCI_MARKERENABLEHIGHLIGHT(int enabled)
SCI_MARKERSETALPHA(int markerNumber, int
alpha)
SCI_MARKERADD(int line, int markerNumber)
@@ -3461,7 +3498,12 @@ struct Sci_TextToFind {
href="#colour">colour)
SCI_MARKERSETBACK(int markerNumber, int colour)
- These two messages set the foreground and background colour of a marker number.
+ These two messages set the foreground and background colour of a marker number.
+ SCI_MARKERSETBACKSELECTED(int markerNumber, int colour)
+ This message sets the highlight background colour of a marker number when its folding block is selected. The default colour is #FF0000.
+ SCI_MARKERENABLEHIGHLIGHT(bool enabled)
+ This message allows to enable/disable the highlight folding block when it is selected. (i.e. block that contains the caret)
SCI_MARKERSETALPHA(int markerNumber, int alpha)
When markers are drawn in the content area, either because there is no margin for them or
@@ -3549,6 +3591,8 @@ struct Sci_TextToFind {
SCI_INDICGETFORE(int indicatorNumber)
SCI_INDICSETALPHA(int indicatorNumber, int alpha)
SCI_INDICGETALPHA(int indicatorNumber)
+ SCI_INDICSETOUTLINEALPHA(int indicatorNumber, int alpha)
+ SCI_INDICGETOUTLINEALPHA(int indicatorNumber)
SCI_INDICSETUNDER(int indicatorNumber, bool under)
SCI_INDICGETUNDER(int indicatorNumber)
@@ -3584,7 +3628,7 @@ struct Sci_TextToFind {
1 |
- A squiggly underline. |
+ A squiggly underline. Requires 3 pixels of descender space. |
@@ -3633,11 +3677,49 @@ struct Sci_TextToFind {
7 |
A rectangle with rounded corners around the text using translucent drawing with the
- interior more transparent than the border. You can use
- SCI_INDICSETALPHA
- to control the alpha transparency value. The default alpha value is 30.
- |
+ interior usually more transparent than the border. You can use
+ SCI_INDICSETALPHA and
+ SCI_INDICSETOUTLINEALPHA
+ to control the alpha transparency values. The default alpha values are 30 for fill colour and 50 for outline colour.
+
+
+ INDIC_STRAIGHTBOX |
+
+ 8 |
+
+ A rectangle around the text using translucent drawing with the
+ interior usually more transparent than the border. You can use
+ SCI_INDICSETALPHA and
+ SCI_INDICSETOUTLINEALPHA
+ to control the alpha transparency values. The default alpha values are 30 for fill colour and 50 for outline colour. |
+
+
+
+ INDIC_DASH |
+
+ 9 |
+
+ A dashed underline. |
+
+
+
+ INDIC_DOTS |
+
+ 10 |
+
+ A dotted underline. |
+
+
+
+ INDIC_SQUIGGLELOW |
+
+ 11 |
+
+ Similar to INDIC_SQUIGGLE but only using 2 vertical pixels
+ so will fit under small fonts. |
+
+
@@ -3657,7 +3739,14 @@ struct Sci_TextToFind {
SCI_INDICSETALPHA(int indicatorNumber, int alpha)
SCI_INDICGETALPHA(int indicatorNumber)
These two messages set and get the alpha transparency used for drawing the
- fill color of the INDIC_ROUNDBOX rectangle. The alpha value can range from
+ fill colour of the INDIC_ROUNDBOX and INDIC_STRAIGHTBOX rectangle. The alpha value can range from
+ 0 (completely transparent) to 255 (no transparency).
+
+
+ SCI_INDICSETOUTLINEALPHA(int indicatorNumber, int alpha)
+ SCI_INDICGETOUTLINEALPHA(int indicatorNumber)
+ These two messages set and get the alpha transparency used for drawing the
+ outline colour of the INDIC_ROUNDBOX and INDIC_STRAIGHTBOX rectangle. The alpha value can range from
0 (completely transparent) to 255 (no transparency).
@@ -3677,8 +3766,8 @@ struct Sci_TextToFind {
SCI_SETINDICATORCURRENT(int indicator)
SCI_GETINDICATORCURRENT
These two messages set and get the indicator that will be affected by calls to
- SCI_INDICATORFILLRANGE and
- SCI_INDICATORCLEARRANGE.
+ SCI_INDICATORFILLRANGE(int position, int fillLength) and
+ SCI_INDICATORCLEARRANGE(int position, int clearLength).
@@ -4302,6 +4391,12 @@ struct Sci_TextToFind {
SCI_VERTICALCENTRECARET |
+
+
+ SCI_MOVESELECTEDLINESUP |
+
+ SCI_MOVESELECTEDLINESDOWN |
+
@@ -4360,7 +4455,10 @@ struct Sci_TextToFind {
SCK_WIN
.
The modifiers are a combination of zero or more of SCMOD_ALT
,
- SCMOD_CTRL
, and SCMOD_SHIFT
. If you are building a table, you might
+ SCMOD_CTRL
, SCMOD_SHIFT
, and SCMOD_META
.
+ On OS X, the Command key is mapped to SCMOD_CTRL
and the Control key to
+ SCMOD_META
.
+ If you are building a table, you might
want to use SCMOD_NORM
, which has the value 0, to mean no modifiers.
SCI_ASSIGNCMDKEY(int SCI_PRIVATELEXERCALL API.
+Fold
is called with the exact range that needs folding.
+Previously, lexers were called with a range that started one line before the range that
+needs to be folded as this allowed fixing up the last line from the previous folding.
+The new approach allows the lexer to decide whether to backtrack or to handle this
+more efficiently.
IDocument
@@ -5677,31 +5780,38 @@ struct NotifyHeader { // This matches the Win32 NMHDR structure
};
struct SCNotification {
- struct NotifyHeader nmhdr;
- int position;
- // SCN_STYLENEEDED, SCN_DOUBLECLICK, SCN_MODIFIED, SCN_DWELLSTART,
- // SCN_DWELLEND, SCN_CALLTIPCLICK,
- // SCN_HOTSPOTCLICK, SCN_HOTSPOTDOUBLECLICK, SCN_HOTSPOTRELEASECLICK
- int ch; // SCN_CHARADDED, SCN_KEY
- int modifiers;
- // SCN_KEY, SCN_DOUBLECLICK, SCN_HOTSPOTCLICK, SCN_HOTSPOTDOUBLECLICK, SCN_HOTSPOTRELEASECLICK
- int modificationType; // SCN_MODIFIED
- const char *text; // SCN_MODIFIED, SCN_USERLISTSELECTION, SCN_AUTOCSELECTION
- int length; // SCN_MODIFIED
- int linesAdded; // SCN_MODIFIED
- int message; // SCN_MACRORECORD
- uptr_t wParam; // SCN_MACRORECORD
- sptr_t lParam; // SCN_MACRORECORD
- int line; // SCN_MODIFIED, SCN_DOUBLECLICK
- int foldLevelNow; // SCN_MODIFIED
- int foldLevelPrev; // SCN_MODIFIED
- int margin; // SCN_MARGINCLICK
- int listType; // SCN_USERLISTSELECTION, SCN_AUTOCSELECTION
- int x; // SCN_DWELLSTART, SCN_DWELLEND
- int y; // SCN_DWELLSTART, SCN_DWELLEND
- int token; // SCN_MODIFIED with SC_MOD_CONTAINER
- int annotationLinesAdded; // SC_MOD_CHANGEANNOTATION
- int updated; // SCN_UPDATEUI
+ struct Sci_NotifyHeader nmhdr;
+ int position;
+ /* SCN_STYLENEEDED, SCN_DOUBLECLICK, SCN_MODIFIED, SCN_MARGINCLICK, */
+ /* SCN_NEEDSHOWN, SCN_DWELLSTART, SCN_DWELLEND, SCN_CALLTIPCLICK, */
+ /* SCN_HOTSPOTCLICK, SCN_HOTSPOTDOUBLECLICK, SCN_HOTSPOTRELEASECLICK, */
+ /* SCN_INDICATORCLICK, SCN_INDICATORRELEASE, */
+ /* SCN_USERLISTSELECTION, SCN_AUTOCSELECTION */
+
+ int ch; /* SCN_CHARADDED, SCN_KEY */
+ int modifiers;
+ /* SCN_KEY, SCN_DOUBLECLICK, SCN_HOTSPOTCLICK, SCN_HOTSPOTDOUBLECLICK, */
+ /* SCN_HOTSPOTRELEASECLICK, SCN_INDICATORCLICK, SCN_INDICATORRELEASE, */
+
+ int modificationType; /* SCN_MODIFIED */
+ const char *text;
+ /* SCN_MODIFIED, SCN_USERLISTSELECTION, SCN_AUTOCSELECTION, SCN_URIDROPPED */
+
+ int length; /* SCN_MODIFIED */
+ int linesAdded; /* SCN_MODIFIED */
+ int message; /* SCN_MACRORECORD */
+ uptr_t wParam; /* SCN_MACRORECORD */
+ sptr_t lParam; /* SCN_MACRORECORD */
+ int line; /* SCN_MODIFIED */
+ int foldLevelNow; /* SCN_MODIFIED */
+ int foldLevelPrev; /* SCN_MODIFIED */
+ int margin; /* SCN_MARGINCLICK */
+ int listType; /* SCN_USERLISTSELECTION */
+ int x; /* SCN_DWELLSTART, SCN_DWELLEND */
+ int y; /* SCN_DWELLSTART, SCN_DWELLEND */
+ int token; /* SCN_MODIFIED with SC_MOD_CONTAINER */
+ int annotationLinesAdded; /* SCN_MODIFIED with SC_MOD_CHANGEANNOTATION */
+ int updated; /* SCN_UPDATEUI */
};
@@ -5737,11 +5847,12 @@ struct SCNotification {
The following SCI_*
messages are associated with these notifications:
- SCI_SETMODEVENTMASK(int
- eventMask)
+ SCI_SETMODEVENTMASK(int eventMask)
SCI_GETMODEVENTMASK
- SCI_SETMOUSEDWELLTIME
+ SCI_SETMOUSEDWELLTIME(int milliseconds)
SCI_GETMOUSEDWELLTIME
+ SCI_SETIDENTIFIER(int identifier)
+ SCI_GETIDENTIFIER
The following additional notifications are sent using the WM_COMMAND
message on
@@ -5752,6 +5863,17 @@ struct SCNotification {
SCEN_KILLFOCUS
+ SCI_SETIDENTIFIER(int identifier)
+ SCI_GETIDENTIFIER
+ These two messages set and get the identifier of the Scintilla instance which is included in notifications as the
+ idFrom
field.
+ When an application creates multiple Scintilla widgets, this allows the source of each notification to be found.
+ On Windows, this value is initialised in the CreateWindow
call and stored as the
+ GWLP_ID
attribute of the window.
+ The value should be small, preferrably less than 16 bits,
+ rather than a pointer as some of the functions will only transmit 16 or 32 bits.
+
+
SCN_STYLENEEDED
If you used SCI_SETLEXER(SCLEX_CONTAINER)
to make the container act as the
@@ -5799,12 +5921,14 @@ href="#SCI_POSITIONFROMLINE">SCI_POSITIONFROMLINE(lineNumber);
SCN_DOUBLECLICK
The mouse button was double clicked in editor. The position
field is set to the text position of the
- double click and the line
field is set to the line of the double click.
+ double click, the line
field is set to the line of the double click, and
+ the modifiers
field is set to the key modifiers
+ held down in a similar manner to SCN_KEY.
SCN_UPDATEUI
Either the text or styling of the document has changed or the selection range or scroll position has changed.
Now would be a good time to update any container UI elements that depend on document or view state.
- The updated
field is set to the bit set of things changed since the previous notiication.
+ The updated
field is set to the bit set of things changed since the previous notification.
@@ -6328,7 +6452,7 @@ for line = lineStart to lineEnd do SCI_ENSUREVISIBLE(line) next
- wParam |
+ listType |
This is set to the listType parameter from the SCI_USERLISTSHOW message that
@@ -6340,10 +6464,15 @@ for line = lineStart to lineEnd do SCI_ENSUREVISIBLE(line) next
| The text of the selection. |
+
+
+ position |
+
+ The position the list was displayed at. |
+
-
SCN_URIDROPPED
@@ -6387,9 +6516,8 @@ for line = lineStart to lineEnd do SCI_ENSUREVISIBLE(line) next
-
-
SCI_SETMOUSEDWELLTIME
+
SCI_SETMOUSEDWELLTIME(int milliseconds)
SCI_GETMOUSEDWELLTIME
These two messages set and get the time the mouse must sit still, in milliseconds, to generate
a SCN_DWELLSTART
notification. If
@@ -6447,7 +6575,7 @@ for line = lineStart to lineEnd do SCI_ENSUREVISIBLE(line) next
- lParam |
+ position |
The start position of the word being completed. |
@@ -6482,9 +6610,8 @@ for line = lineStart to lineEnd do SCI_ENSUREVISIBLE(line) next
void scintilla_set_id(ScintillaObject *sci, uptr_t id)
Set the control ID which will be used in the idFrom field of the NotifyHeader structure of all
- notifications for this instance. When an application creates multiple Scintilla widgets, this allows
- the source of each notification to be found. The value should be small, preferrably less than 16 bits,
- rather than a pointer as some of the functions will only transmit 16 or 32 bits.
+ notifications for this instance.
+ This is equivalent to SCI_SETIDENTIFIER.
sptr_t scintilla_send_message(ScintillaObject *sci,unsigned int iMessage, uptr_t wParam, sptr_t lParam)
The main entry point allows sending any of the messages described in this document.
diff --git a/scintilla/doc/ScintillaDownload.html b/scintilla/doc/ScintillaDownload.html
index 0ccb913e..176acf22 100644
--- a/scintilla/doc/ScintillaDownload.html
+++ b/scintilla/doc/ScintillaDownload.html
@@ -25,9 +25,9 @@
-
+
Windows
-
+
GTK+/Linux
|
@@ -41,7 +41,7 @@
containing very few restrictions.
- Release 2.25
+ Release 2.27
Source Code
@@ -49,8 +49,8 @@
The source code package contains all of the source code for Scintilla but no binary
executable code and is available in
- - zip format (1200K) commonly used on Windows
- - tgz format (1080K) commonly used on Linux and compatible operating systems
+ - zip format (1200K) commonly used on Windows
+ - tgz format (1080K) commonly used on Linux and compatible operating systems
Instructions for building on both Windows and Linux are included in the readme file.
diff --git a/scintilla/doc/ScintillaHistory.html b/scintilla/doc/ScintillaHistory.html
index 821393df..93d444ff 100644
--- a/scintilla/doc/ScintillaHistory.html
+++ b/scintilla/doc/ScintillaHistory.html
@@ -368,6 +368,16 @@
Dariusz Knociński |
Ben Fisher |
+ Don Gobin |
+ John Yeung |
+
+ Adobe |
+ Elizabeth A. Irizarry |
+ Mike Schroeder |
+ Morten MacFly |
+
+ Jaime Gimeno |
+ Thomas Linder Puls |
@@ -379,6 +389,251 @@
Icons Copyright(C) 1998 by Dean S. Jones
+
+
+ -
+ Released 20 June 2011.
+
+ -
+ On recent GTK+ 2.x versions when using Cairo, bug fixed where wrong colours were drawn.
+
+ -
+ SciTE on GTK+ slow performance in menu maintenance fixed.
+ Bug #3315233.
+
+ -
+ Cocoa platform supports 64-bit builds and uses only non-deprecated APIs.
+ Asian Input Method Editors are supported.
+ Autocompletion lists and calltips implemented.
+ Control identifier used in notifications.
+
+ -
+ On Cocoa, rectangular selection now uses Option/Alt key to be compatible with Apple Human
+ Interface Guidelines and other applications.
+ The Control key is reported with an SCMOD_META modifier bit.
+
+ -
+ API added for setting and retrieving the identifier number used in notifications.
+
+ -
+ SCI_SETEMPTYSELECTION added to set selection without scrolling or redrawing more than needed.
+ Feature #3314877.
+
+ -
+ Added new indicators. INDIC_DASH and INDIC_DOTS are variants of underlines.
+ INDIC_SQUIGGLELOW indicator added as shorter alternative to INDIC_SQUIGGLE for small fonts.
+ Bug #3314591
+
+ -
+ Margin line selection can be changed to select display lines instead of document lines.
+ Bug #3312763.
+
+ -
+ On Windows, SciTE can perform reverse searches by pressing Shift+Enter
+ in the Find or Replace strips or dialogs.
+
+ -
+ Matlab lexer does not special case '\' in single quoted strings.
+ Bug #948757
+ Bug #1755950
+ Bug #1888738
+ Bug #3316852.
+
+ -
+ Verilog lexer supports SystemVerilog folding and keywords.
+
+ -
+ Font leak fixed.
+ Bug #3306156.
+
+ -
+ Automatic scrolling works for long wrapped lines.
+ Bug #3312763.
+
+ -
+ Multiple typing works for cases where selections collapse together.
+ Bug #3309906.
+
+ -
+ Fold expanded when needed in word wrap mode.
+ Bug #3291579.
+
+ -
+ Bug fixed with edge drawn in wrong place on wrapped lines.
+ Bug #3314807.
+
+ -
+ Bug fixed with unnecessary scrolling for SCI_GOTOLINE.
+ Bug #3303406.
+
+ -
+ Bug fixed where extra step needed to undo SCI_CLEAR in virtual space.
+ Bug #3159691.
+
+ -
+ Regular expression search fixed for \$ on last line of search range.
+ Bug #3313746.
+
+ -
+ SciTE performance improved when switching to a tab with a very large file.
+ Bug #3311421.
+
+ -
+ On Windows, SciTE advanced search remembers the "Search only in this style" setting.
+ Bug #3313344.
+
+ -
+ On GTK+, SciTE opens help using "xdg-open" instead of "netscape" as "netscape" no longer commonly installed.
+ Bug #3314377.
+
+ -
+ SciTE script lexers can use 256 styles.
+
+ -
+ SciTE word highlight works for words containing DBCS characters.
+ Bug #3315173.
+
+ -
+ Compilation fixed for wxWidgets.
+ Bug #3306156.
+
+
+
+
+ -
+ Released 25 May 2011.
+
+ -
+ Folding margin symbols can be highlighted for the current folding block.
+ Feature #3147069.
+
+ -
+ Selected lines can be moved up or down together.
+ Feature #3304850.
+
+ -
+ SciTE can highlight all occurrences of the current word or selected text.
+ Feature #3291636.
+
+ -
+ Experimental GTK+ 3.0 support: build with "make GTK3=1".
+
+ -
+ INDIC_STRAIGHTBOX added. Is similar to INDIC_ROUNDBOX but without rounded corners.
+ Bug #3290435.
+
+ -
+ Can show brace matching and mismatching with indicators instead of text style.
+ Translucency of outline can be altered for INDIC_ROUNDBOX and INDIC_STRAIGHTBOX.
+ Feature #3290434.
+
+ -
+ SciTE can automatically indent python by examining previous line for scope-starting ':' with indent.python.colon.
+
+ -
+ Batch file lexer allows braces '(' or ')' inside variable names.
+
+ -
+ The cpp lexer only recognises Vala triple quoted strings when lexer.cpp.triplequoted.strings property is set.
+ Bug #3239234.
+
+ -
+ Make file lexer treats a variable with a nested variable like $(f$(qx)b) as one variable.
+ Bug #3298223.
+
+ -
+ Folding bug fixed for JavaScript with nested PHP.
+ Bug #3193530.
+
+ -
+ HTML lexer styles Django's {# #} comments.
+ Bug #3013798.
+
+ -
+ HTML lexer styles JavaScript regular expression correctly for /abc/i.test('abc');.
+ Bug #3209108.
+
+ -
+ Inno Setup Script lexer now works properly when it restarts from middle of [CODE] section.
+ Bug #3283880.
+ Bug #3129044.
+
+ -
+ Lua lexer updated for Lua 5.2 with hexadecimal floating-point numbers and '\*' whitespace escaping in strings.
+ Feature #3243811.
+
+ -
+ Perl folding folds "here doc"s and adds options fold.perl.at.else and fold.perl.comment.explicit. Fold structure for Perl fixed.
+ Feature #3112671.
+ Bug #3265401.
+
+ -
+ Python lexer supports cpdef keyword for Cython.
+ Bug #3279728.
+
+ -
+ SQL folding option lexer.sql.fold.at.else renamed to fold.sql.at.else.
+ Bug #3271474.
+
+ -
+ SQL lexer no longer treats ';' as terminating a comment.
+ Bug #3196071.
+
+ -
+ Text drawing and measurement segmented into smaller runs to avoid platform bugs.
+ Bug #3277449.
+ Bug #3165743.
+
+ -
+ SciTE on Windows adds temp.files.sync.load property to open dropped temporary files synchronously as they may
+ be removed before they can be opened asynchronously.
+ Bug #3072009.
+
+ -
+ Bug fixed with indentation guides ignoring first line in SC_IV_LOOKBOTH mode.
+ Bug #3291317.
+
+ -
+ Bugs fixed in backward regex search.
+ Bug #3292659.
+
+ -
+ Bugs with display of folding structure fixed for wrapped lines and where there is a fold header but no body.
+ Bug #3291579.
+ Bug #3265401.
+
+ -
+ SciTE on Windows cursor changes to an arrow now when over horizontal splitter near top of window.
+ Bug #3286620.
+
+ -
+ Fixed default widget size problem on GTK+.
+ Bug #3267892.
+
+ -
+ Fixed font size when using Cairo on GTK+.
+ Bug #3272662.
+
+ -
+ Fixed primary selection and cursor issues on GTK+ when unrealized then realized.
+ Bug #3256153.
+
+ -
+ Right click now cancels selection on GTK+ like on Windows.
+ Bug #3235190.
+
+ -
+ SciTE on GTK+ implements z-order buffer switching like on Windows.
+ Bug #3228384.
+
+ -
+ Improve selection position after SciTE Insert Abbreviation command when abbreviation expansion includes '|'.
+
+
diff --git a/scintilla/doc/ScintillaRelated.html b/scintilla/doc/ScintillaRelated.html
index fd9a4880..f060ce0f 100644
--- a/scintilla/doc/ScintillaRelated.html
+++ b/scintilla/doc/ScintillaRelated.html
@@ -28,6 +28,14 @@
Ports and Bindings of Scintilla
+
+ GtkScintilla
+ is a GTK+ widget which enables easily adding a powerful
+ source code editor to your applications. Harnessing the abilities
+ of the Scintilla editing component, GtkScintilla adds a familiar
+ GTK+/GObject API, making the widget comfortable to use in
+ these programs, using all the typical GObject conventions.
+
Editawy
is an ActiveX Control wrapper that support all Scintilla functions and additional high level functions.
@@ -99,11 +107,6 @@
is a Python binding for gtk1.x scintilla that uses
gtkscintilla instead of the default GTK class.
-
- pyscintilla2
- is a Python binding for GTK 2.x scintilla that uses
- gtkscintilla2.
-
ScintillaCtrl
is an unmaintained ActiveX control wrapper for Scintilla.
@@ -112,7 +115,7 @@
Projects using Scintilla
- Coder's Studio
+ CoderStudio
is an IDE for Assembly programming similar to Visual Studio 6.0.
diff --git a/scintilla/doc/index.html b/scintilla/doc/index.html
index 6fb23236..03830294 100644
--- a/scintilla/doc/index.html
+++ b/scintilla/doc/index.html
@@ -9,7 +9,7 @@
-
+