You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
When using wxStyledTextCtrl, the wrapper around the Scintilla editing control, if you want to implement your own custom lexer for syntax highlighting on a custom language, then you need the ILexer.h header file. The file ILexer.h includes Sci_Position.h, so you also need that. More specifically, you need the include files from the release of scintilla used by wxWidgets, which for wxWidgets 3.2.6 is Scintilla 3.7.2. In the wxwidgets 3.2.6 source tree, these are located at src/stc/scintilla/include.
Proposed solution
Install these additional headers with wxwidgets. They should probably be in a scintilla subdirectory?
Describe alternatives you've considered
As an alternative you can use FetchContent or git submodules to obtain the necessary version of the scintilla source tree to access the headers.
Additional context
No response
The text was updated successfully, but these errors were encountered:
Looking at this further, maybe this is the wrong approach. Upon deeper investigation of writing my own external lexer, you need more than just these two header files in order for it to be realistic. You need several other support classes provided by Scintilla in order to do this reasonably.
That implies that instead of getting this stuff from the wxWidgets port, I should be getting it from the Scintilla port.
Is your feature request related to a problem? Please describe.
When using wxStyledTextCtrl, the wrapper around the Scintilla editing control, if you want to implement your own custom lexer for syntax highlighting on a custom language, then you need the
ILexer.h
header file. The fileILexer.h
includesSci_Position.h
, so you also need that. More specifically, you need the include files from the release of scintilla used by wxWidgets, which for wxWidgets 3.2.6 is Scintilla 3.7.2. In the wxwidgets 3.2.6 source tree, these are located atsrc/stc/scintilla/include
.Proposed solution
Install these additional headers with wxwidgets. They should probably be in a
scintilla
subdirectory?Describe alternatives you've considered
As an alternative you can use FetchContent or git submodules to obtain the necessary version of the scintilla source tree to access the headers.
Additional context
No response
The text was updated successfully, but these errors were encountered: