From dc0398d650e75efe9641f0c48d630f2c2027281a Mon Sep 17 00:00:00 2001
From: Neil The easiest technique is to implement in C++ using LexillaAccess and load a Lexilla shared library. LexillaAccess simplifies use of Lexilla, hides operating system differences, and allows loading
multiple libraries that support the Lexilla protocol.
It is defined in lexilla/access/LexillaAccess.h and the source code is in lexilla/access/LexillaAccess.cxx.
Add these to the build dependencies of the project or build file. Both SciTE and TestLexers (used to test Lexilla) in lexilla/test use LexillaAccess.
TestLexers is much simpler than SciTE so can be a good example to examine. Header files for lexers and for using Lexilla will be included so build files will need to reference these new locations.
@@ -169,7 +169,7 @@
for a sufficiently motivated developer to call methods on the lexer from C. There is an example for using Lexilla from C in examples/CheckLexilla. Include the system header for loading shared objects.
diff --git a/doc/ScintillaDoc.html b/doc/ScintillaDoc.html
index 01f65cbd1..e39ff9d30 100644
--- a/doc/ScintillaDoc.html
+++ b/doc/ScintillaDoc.html
@@ -313,7 +313,7 @@
As the protocol only supports object lexers, an additional function Lexer libraries that provide the same functions as Lexilla may provide lexers for use by Scintilla,
augmenting or replacing those provided by Lexilla.From C++: LexillaAccess
Building
Steps in code
CreateLexer(const char *name)
is exposed which will create a lexer object (ILexer5 *) for any object lexer or function lexer.
Returns true when the element currently allows translucent drawing when an alpha component is included.
This may change based on circumstances - different platforms or graphics technologies may implement translucency
- and newer versions of Scintilla may implement translucency for elements that did not previously support it.
+ and newer versions of Scintilla may implement translucency for elements that did not previously support it.
SCI_GETELEMENTBASECOLOUR(int element) → colouralpha
Returns the default colour of an element.
This may be a value defined by Scintilla or it may be derived from the operating system or platform.
- Which values are set from the operating system may differ between operating systems and operating system versions.
+ Which values are set from the operating system may differ between operating systems and operating system versions.
When undefined the return value is 0 which is equivalent to completely transparent black.
These colours may be useful when defining styles with similarities such as synthesizing dark
mode styles that use the same colours as the system
SCI_SETSELALPHA(alpha alpha)
SCI_GETSELALPHA → int
- These APIs are now discouraged and should be replaced with
+ These APIs are now discouraged and should be replaced with
a combination of setting the layer with SCI_SETSELECTIONLAYER and
setting translucency through the SC_ELEMENT_SELECTION_BACK element.
INDIC_STRIKE, INDIC_BOX, INDIC_ROUNDBOX, INDIC_STRAIGHTBOX,
INDIC_FULLBOX, INDIC_DASH, INDIC_DOTS, INDIC_SQUIGGLELOW.
- Fractional pixel widths are possible such as 50 for half a pixel wide. +
Fractional pixel widths are possible such as 50 for half a pixel wide.
On many systems a half pixel value will appear as a fainter line but it allows drawing very thin lines on systems with multiple physical pixels
per logical pixel.
Half (logical) pixel lines are available on macOS with 'retina' displays,
@@ -9517,7 +9517,7 @@ EM_FORMATRANGE
Any use of these symbols should be removed and replaced with standard indicators.
SCI_GETSTYLEBITS and SCI_GETSTYLEBITSNEEDED always return 8,
indicating that 8 bits are used for styling and there are 256 styles.
Discouraged APIs are a step before deprecation. A new preferred API has been implemented that new code should use but the old API is unlikely to be removed. Discouraged APIs are marked with a orange strikethrough and their documentation mentions the preferred API. -- cgit v1.2.3